-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
73 lines (61 loc) · 2.01 KB
/
Copy pathbuild.gradle
File metadata and controls
73 lines (61 loc) · 2.01 KB
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
plugins {
id 'java'
id 'application'
id 'jacoco'
id "org.sonarqube" version "3.0"
id "com.github.johnrengelman.shadow" version "5.2.0"
id "de.undercouch.download" version "4.0.4"
}
def vertxVersion = '4.0.0.Beta1'
def junitVersion = "5.6.2"
def h2version = "1.4.200"
group 'be.howest.ti'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
shadowJar {
archiveClassifier.set('fat')
manifest {
attributes 'Main-Verticle': "$mainVerticleName"
}
mergeServiceFiles {
include 'META-INF/services/io.vertx.core.spi.VerticleFactory'
}
}
jacoco {
toolVersion = "0.8.5"
reportsDir = file("$buildDir/customJacocoReportDir")
}
dependencies {
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
testCompile "org.junit.jupiter:junit-jupiter-params:$junitVersion"
compile group: 'org.slf4j', name: 'slf4j-nop', version: '1.7.21'
testImplementation "io.vertx:vertx-junit5:$vertxVersion"
testImplementation "io.vertx:vertx-web-client:$vertxVersion"
compile "io.vertx:vertx-core:$vertxVersion"
compile "io.vertx:vertx-web:$vertxVersion"
compile "io.vertx:vertx-web-api-contract:$vertxVersion"
compile "io.vertx:vertx-web-client:$vertxVersion"
compile "io.vertx:vertx-config:$vertxVersion"
compile "io.vertx:vertx-codegen:$vertxVersion"
compile "com.h2database:h2:$h2version"
}
mainClassName = 'io.vertx.core.Launcher'
run {
systemProperty(
"vertx.logger-delegate-factory-class-name",
"io.vertx.core.logging.JULLogDelegateFactory"
)
args = ['run', 'be.howest.ti.mars.webserver.WebServer', "--launcher-class=$mainClassName",
"-Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.JULLogDelegateFactory"]
}