forked from aruis/geekwalk
/
build.gradle
63 lines (51 loc) · 1.52 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
plugins {
id 'java'
id 'groovy'
id 'application'
id "com.github.johnrengelman.shadow" version "7.1.2"
}
group 'com.aruistar'
version '1.0-SNAPSHOT'
repositories {
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
mavenContent {
snapshotsOnly()
}
}
mavenCentral()
}
def vertxVersion = "4.1.0"
def junitJupiterVersion = "5.6.0"
def mainVerticleName = "com.aruistar.geekwalk.ProxyVerticle"
def watchForChange = "src/**/*"
def doOnChange = "./gradlew classes"
def launcherClassName = "io.vertx.core.Launcher"
application {
mainClassName = launcherClassName
}
dependencies {
implementation("io.vertx:vertx-core:$vertxVersion")
implementation("io.vertx:vertx-web:$vertxVersion")
implementation("io.vertx:vertx-web-client:$vertxVersion")
testImplementation("org.codehaus.groovy:groovy:3.0.8")
testImplementation("org.codehaus.groovy:groovy-json:3.0.8")
testImplementation("org.assertj:assertj-core:3.19.0")
testImplementation("io.vertx:vertx-junit5:$vertxVersion")
}
//java {
// sourceCompatibility = JavaVersion.VERSION_1_8
// targetCompatibility = JavaVersion.VERSION_1_8
//}
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=$launcherClassName", "--on-redeploy=$doOnChange"]
}