-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
62 lines (53 loc) · 1.7 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
plugins {
id 'java'
id 'io.quarkus'
id 'jacoco'
}
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
implementation enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}")
implementation 'io.quarkus:quarkus-arc'
implementation 'io.quarkus:quarkus-resteasy-reactive'
testImplementation 'io.quarkus:quarkus-junit5'
testImplementation 'io.rest-assured:rest-assured'
testImplementation("io.quarkus:quarkus-jacoco")
}
group 'reproducer'
version '1.0-SNAPSHOT'
java {
sourceCompatibility = JavaVersion.VERSION_19
targetCompatibility = JavaVersion.VERSION_19
}
compileJava {
options.encoding = 'UTF-8'
options.compilerArgs << '-parameters'
options.compilerArgs.addAll(['--enable-preview'])
options.compilerArgs.addAll(['--add-modules', 'jdk.incubator.concurrent'])
}
compileTestJava {
options.encoding = 'UTF-8'
options.compilerArgs << '-parameters'
options.compilerArgs.addAll(['--enable-preview'])
options.compilerArgs.addAll(['--add-modules', 'jdk.incubator.concurrent'])
}
test {
finalizedBy jacocoTestReport
jacoco {
excludeClassLoaders = ["*QuarkusClassLoader"]
destinationFile = layout.buildDirectory.file("jacoco-quarkus.exec").get().asFile
classDumpDir = layout.buildDirectory.dir('jacoco/classpathdumps').get().asFile
}
jacocoTestReport.enabled = false
jvmArgs += '--enable-preview'
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
reports {
xml.required = true
csv.required = false
html.outputLocation = layout.buildDirectory.dir('reports/jacoco/test/html')
}
}