1
0

add Gradle Java toolchain and improve documentation

This commit is contained in:
Michael Hoennig
2022-08-05 13:10:11 +02:00
parent 06996e4dc4
commit 433d0e19f5
4 changed files with 88 additions and 7 deletions

View File

@ -8,7 +8,6 @@ plugins {
group = 'net.hostsharing'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
wrapper {
distributionType = Wrapper.DistributionType.BIN
@ -25,6 +24,12 @@ repositories {
mavenCentral()
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
ext {
set('testcontainersVersion', "1.17.3")
}
@ -61,6 +66,10 @@ dependencyManagement {
}
}
tasks.withType(JavaCompile) {
options.compilerArgs += ["-parameters"]
}
tasks.named('test') {
useJUnitPlatform()
}