Skip to content

Commit

Permalink
Merge branch 'main' into v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xyzsd authored Dec 1, 2023
2 parents 5a3baa8 + 123519b commit 622ae38
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ dependencies {
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.3")
}

java {
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(20))
vendor.set(JvmVendorSpec.ORACLE)
languageVersion.set(JavaLanguageVersion.of(21))
vendor.set(JvmVendorSpec.ADOPTIUM)
}

withJavadocJar()
Expand All @@ -42,6 +42,7 @@ tasks.withType<JavaCompile>().configureEach {
options.compilerArgs.add("-Xlint:preview")
}


tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
Expand All @@ -51,7 +52,6 @@ tasks.withType<JavaExec>().configureEach {




publishing {
publications {
create<MavenPublication>("mavenJava") {
Expand Down Expand Up @@ -119,8 +119,7 @@ tasks.javadoc {
(options as StandardJavadocDocletOptions).addBooleanOption("html5", true)
}
val javadocOptions = options as CoreJavadocOptions
javadocOptions.addBooleanOption("-enable-preview", true)
javadocOptions.addStringOption("source", "20")
javadocOptions.addStringOption("source", "21")
}

// for reproducible builds
Expand Down

0 comments on commit 622ae38

Please sign in to comment.