diff --git a/.github/workflows/javadoc.yml b/.github/workflows/javadoc.yml index 6c500a84..bfc33346 100644 --- a/.github/workflows/javadoc.yml +++ b/.github/workflows/javadoc.yml @@ -26,6 +26,7 @@ jobs: with: java-version: | 22 + 21 distribution: 'temurin' - name: Grant execute permission for gradlew if: ${{ runner.os != 'Windows' }} diff --git a/build.gradle.kts b/build.gradle.kts index cfa5123a..be398c52 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -177,7 +177,10 @@ artifactNameMap.forEach { (subprojectName, artifactName) -> "Implementation-Version" to projVersion ) archiveBaseName.set(artifactName) - from(rootProject.file(projLicenseFileName)).rename(projLicenseFileName, "${projLicenseFileName}_$artifactName") + from(rootProject.file(projLicenseFileName)).rename( + projLicenseFileName, + "${projLicenseFileName}_$artifactName" + ) } tasks.named("sourcesJar") { @@ -222,6 +225,9 @@ tasks.register("assembleJavadocArgs") { } tasks.register("aggregateJavadoc") { + javadocTool = the().javadocToolFor { + languageVersion = JavaLanguageVersion.of(targetJavaVersion) + } dependsOn(tasks["assembleJavadocArgs"]) group = "documentation" outputs.upToDateWhen { false } @@ -239,6 +245,9 @@ tasks.register("aggregateJavadoc") { allprojects { tasks.withType { + javadocTool = the().javadocToolFor { + languageVersion = JavaLanguageVersion.of(targetJavaVersion) + } options { if (this is CoreJavadocOptions) { if (jdkEnablePreview.toBoolean()) {