-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
81 lines (66 loc) · 2.22 KB
/
build.gradle.kts
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
75
76
77
78
79
80
81
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
java
application
id("com.github.johnrengelman.shadow") version "4.0.3"
// pmd
jacoco
// id("com.github.spotbugs") version "2.0.0"
}
repositories {
mavenCentral()
jcenter()
}
val vertxVersion = "3.8.0"
val junitVersion = "5.3.2"
val hamcrestVersion = "1.3"
val logbackVersion = "1.2.3"
val owaspSecurityLoggingVersion = "1.1.6"
val javaUuidGeneratorVersion = "3.2.0"
dependencies {
implementation("io.vertx:vertx-core:$vertxVersion")
implementation("io.vertx:vertx-web:$vertxVersion")
implementation("io.vertx:vertx-config:$vertxVersion")
implementation("io.vertx:vertx-config-yaml:$vertxVersion")
implementation("io.vertx:vertx-config-kubernetes-configmap:$vertxVersion")
implementation("io.vertx:vertx-service-discovery:$vertxVersion")
// Logging
implementation("ch.qos.logback:logback-classic:$logbackVersion")
implementation("org.owasp:security-logging-logback:$owaspSecurityLoggingVersion")
implementation("com.fasterxml.uuid:java-uuid-generator:$javaUuidGeneratorVersion")
testImplementation("io.vertx:vertx-junit5:$vertxVersion")
testImplementation("io.vertx:vertx-web-client:$vertxVersion")
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
testImplementation("org.hamcrest:hamcrest-library:$hamcrestVersion")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
}
application {
mainClassName = "io.vertx.core.Launcher"
}
val mainVerticleName = "io.luminara.quickstart.vertxweb.MainVerticle"
val watchForChange = "src/**/*.java"
val doOnChange = "${projectDir}/gradlew classes"
jacoco {
toolVersion = "0.8.4"
reportsDir = file("$buildDir/customJacocoReportDir")
}
tasks {
test {
useJUnitPlatform()
}
getByName<JavaExec>("run") {
args = listOf("run", mainVerticleName, "--redeploy=${watchForChange}", "--launcher-class=${application.mainClassName}", "--on-redeploy=${doOnChange}")
}
withType<ShadowJar> {
classifier = "fat"
manifest {
attributes["Main-Verticle"] = mainVerticleName
}
mergeServiceFiles {
include("META-INF/services/io.vertx.core.spi.VerticleFactory")
}
}
}