This repository has been archived by the owner on Feb 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
/
build.gradle
64 lines (51 loc) · 1.65 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
apply plugin: 'java'
apply plugin: 'application'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
mainClassName = "com.ebay.myriad.Main"
group = "com.ebay.myriad"
version = "0.0.1"
configurations {
provided
capsule
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
ext {
mesosVer = "0.20.0"
dropwizardVer = "0.7.1"
}
capsule "co.paralleluniverse:capsule:0.7.1"
compile "org.apache.mesos:mesos:${ext.mesosVer}"
compile 'com.squareup.retrofit:retrofit:1.6.1'
compile 'com.google.inject:guice:3.0'
compile 'org.apache.commons:commons-collections4:4.0'
compile "io.dropwizard:dropwizard-core:${ext.dropwizardVer}"
compile "io.dropwizard:dropwizard-assets:${ext.dropwizardVer}"
compile "io.dropwizard:dropwizard-views-mustache:${ext.dropwizardVer}"
compile "org.apache.curator:curator-framework:2.6.0"
testCompile 'junit:junit:4.11'
}
run {
systemProperty "myriad.config", "build/resources/main/config.yml"
}
task capsule(type: Jar, dependsOn: jar) {
archiveName = "myriad-capsule-${version}.jar"
from jar
from { configurations.runtime }
from { sourceSets.main.resources }
from(configurations.capsule.collect { zipTree(it) }) { include 'Capsule.class' }
manifest {
attributes(
'Main-Class' : 'Capsule',
'Application-Class' : mainClassName,
'Min-Java-Version' : '1.8.0',
'JVM-Args' : run.jvmArgs.join(' '),
'System-Properties' : (run.systemProperties + ["myriad.config": '$CAPSULE_DIR/config.yml']).collect { k,v -> "$k=$v" }.join(' ')
)
}
}