-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
47 lines (40 loc) · 1.09 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
apply plugin: 'scala'
apply plugin: 'application'
mainClassName = "com.amadeus.ti.calcite.ZMQServer"
repositories {
mavenLocal()
mavenCentral()
maven {
url "http://conjars.org/repo"
}
}
dependencies {
compile 'org.zeromq:jeromq:0.3.6'
compile 'org.apache.calcite:calcite-core:1.22.0'
compile 'org.scala-lang:scala-library:2.11.12'
compile 'io.argonaut:argonaut_2.11:6.2-M3'
}
dependencies {
testCompile "org.specs2:specs2-core_2.11:3.8.5.1"
testCompile "org.specs2:specs2-junit_2.11:3.8.5.1"
}
task specs(type: JavaExec, dependsOn: testClasses) {
main = 'org.specs2.runner.files'
args = ['console']
classpath sourceSets.main.runtimeClasspath
classpath sourceSets.test.runtimeClasspath
classpath configurations.testRuntime
classpath configurations.runtime
}
test.dependsOn specs
task uberjar(type: Jar) {
baseName = project.name + '-all'
manifest {
attributes "Main-Class": "$mainClassName"
}
doFirst {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
with jar
}