forked from denzilferreira/aware-micro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·74 lines (61 loc) · 1.85 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
70
71
72
73
74
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.20'
id 'application'
id 'com.github.johnrengelman.shadow' version '5.0.0'
}
group = 'com.awareframework'
version = '1.0.0-SNAPSHOT'
repositories {
mavenCentral()
jcenter()
}
ext {
kotlinVersion = '1.3.20'
vertxVersion = '3.8.4'
}
application {
mainClassName = 'io.vertx.core.Launcher'
}
def mainVerticleName = 'com.awareframework.micro.MainVerticle'
def watchForChange = 'src/main/kotlin/**/*'
def doOnChange = './gradlew classes'
dependencies {
implementation "io.vertx:vertx-config:$vertxVersion"
implementation "io.vertx:vertx-health-check:$vertxVersion"
implementation "io.vertx:vertx-web:$vertxVersion"
implementation "io.vertx:vertx-web-client:$vertxVersion"
implementation "io.vertx:vertx-mysql-postgresql-client:$vertxVersion"
implementation "io.vertx:vertx-hazelcast:$vertxVersion"
implementation "io.vertx:vertx-auth-oauth2:$vertxVersion"
implementation "io.vertx:vertx-tcp-eventbus-bridge:$vertxVersion"
implementation "io.vertx:vertx-sockjs-service-proxy:$vertxVersion"
implementation "io.vertx:vertx-lang-kotlin:$vertxVersion"
implementation "io.vertx:vertx-mqtt:$vertxVersion"
implementation "io.vertx:vertx-web-templ-pebble:$vertxVersion"
implementation "org.slf4j:slf4j-nop:1.7.25"
implementation "io.vertx:vertx-core:$vertxVersion"
}
compileKotlin {
kotlinOptions.jvmTarget = '1.8'
}
compileTestKotlin {
kotlinOptions.jvmTarget = '1.8'
}
shadowJar {
classifier = 'fat'
manifest {
attributes 'Main-Verticle': mainVerticleName
}
mergeServiceFiles {
include 'META-INF/services/io.vertx.core.spi.VerticleFactory'
}
}
test {
useJUnitPlatform()
testLogging {
events 'PASSED', 'FAILED', 'SKIPPED'
}
}
run {
args = ['run', mainVerticleName, "--redeploy=$watchForChange", "--launcher-class=$mainClassName", "--on-redeploy=$doOnChange"]
}