-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
51 lines (42 loc) · 1.18 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
plugins {
id 'application'
id 'eclipse'
id 'com.github.johnrengelman.shadow' version '5.1.0'
}
defaultTasks 'shadowJar'
repositories {
jcenter()
}
version = '0.0-SNAPSHOT'
sourceCompatibility = '1.8'
mainClassName = 'io.vertx.core.Launcher'
def vertxVersion = '3.5.1'
def mainVerticleName = 'ro.andreiciortea.yggdrasil.MainVerticle'
def watchForChange = 'src/**/*'
def doOnChange = './gradlew classes'
dependencies {
compile "io.vertx:vertx-core:$vertxVersion"
compile 'io.vertx:vertx-config:3.5.1'
compile 'io.vertx:vertx-web:3.5.1'
compile 'io.vertx:vertx-web-api-contract:3.5.1'
compile 'io.vertx:vertx-web-client:3.5.1'
compile 'org.apache.commons:commons-rdf-rdf4j:0.5.0'
compile 'com.google.code.gson:gson:2.8.2'
testCompile "junit:junit:4.12"
testCompile "io.vertx:vertx-unit:$vertxVersion"
}
shadowJar {
classifier = 'fat'
manifest {
attributes "Main-Verticle": mainVerticleName
}
mergeServiceFiles {
include 'META-INF/services/io.vertx.core.spi.VerticleFactory'
}
}
run {
args = ['run', mainVerticleName, "--redeploy=$watchForChange", "--launcher-class=$mainClassName", "--on-redeploy=$doOnChange"]
}
wrapper {
gradleVersion = '5.6.1'
}