-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
44 lines (37 loc) · 936 Bytes
/
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
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '2.0.4'
}
group 'com.boring'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
mainClassName = 'io.vertx.core.Launcher'
def vertxVersion = '3.5.3'
def mainVerticleName = 'com.boring.Application'
def watchForChange = 'src/**/*'
def doOnChange = 'gradle classes'
repositories {
mavenCentral()
}
dependencies {
compile(
"io.vertx:vertx-core:$vertxVersion",
)
testCompile(
"io.vertx:vertx-unit:$vertxVersion",
'junit:junit:4.12',
)
}
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"]
}