-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
69 lines (60 loc) · 1.82 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
65
66
67
68
69
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '1.2.1'
id 'idea'
id 'groovy'
}
if (!JavaVersion.current().java8Compatible) {
throw new IllegalStateException('''A Haiku:
| This needs Java 8,
| You are using something else,
| Refresh. Try again.'''.stripMargin())
}
repositories {
// flatDir {
// dirs '../sol-jms-6.0.0.146/libs'
// }
maven {
url = 'http://oss.sonatype.org/content/repositories/snapshots/'
}
mavenCentral()
// mavenLocal()
}
dependencies {
compile "io.vertx:vertx-core:$vertxVersion"
compile "io.vertx:vertx-web:$vertxVersion"
compile "io.vertx:vertx-ext:$vertxExtVersion"
compile "ch.qos.logback:logback-classic:$logbackVersion"
compile "net.sourceforge.argparse4j:argparse4j:$argparseVersion"
compile "com.google.code.gson:gson:$gsonVersion"
// compile "javax.jms:jms:1.1"
// compile files("sol-jms")
// compile files('sol-jms-6.0.0.146.jar')
// compile files('j2ee.jar')
testCompile "junit:junit:$junitVersion"
testCompile "io.vertx:vertx-unit:$vertxVersion"
}
test {
systemProperty 'vertx.logger-delegate-factory-class-name', "io.vertx.core.logging.SLF4JLogDelegateFactory"
}
//task copyToLib( type: Copy ) {
// into "$buildDir/libs/lib"
// from configurations.runtime
//}
//
//build.dependsOn(copyToLib)
shadowJar {
// dependsOn copyToLib
classifier = 'fat'
manifest {
attributes 'Main-Class': 'io.vertx.core.Starter'
attributes 'Main-Verticle': 'com.deblox.Boot'
}
mergeServiceFiles {
include 'META-INF/services/io.vertx.core.spi.VerticleFactory'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}
test.outputs.upToDateWhen { false }