-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle.kts
54 lines (42 loc) · 1.02 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
import org.gradle.api.tasks.compile.JavaCompile
val vertxVersion = "3.6.2"
val junit5Version = "5.3.1"
group = "com.github.aesteve"
version = vertxVersion // align with Vert.x version
plugins {
java
jacoco
maven
id("org.sonarqube") version("2.6")
}
tasks.withType<JavaCompile> {
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile("io.vertx:vertx-core:$vertxVersion")
compile("io.vertx:vertx-codegen:$vertxVersion")
compile("io.vertx:vertx-web:$vertxVersion")
testCompile("io.vertx:vertx-junit5:$vertxVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junit5Version")
}
tasks.withType<Test> {
useJUnitPlatform()
}
jacoco {
toolVersion = "0.8.2"
}
tasks.jacocoTestReport {
dependsOn(":test")
reports {
xml.isEnabled = true
csv.isEnabled = false
html.destination = file("$buildDir/jacocoHtml")
}
}
tasks.withType<Wrapper> {
gradleVersion = "5.1.1"
}