Skip to content

Commit

Permalink
Fix javadoc build
Browse files Browse the repository at this point in the history
  • Loading branch information
squid233 committed Apr 6, 2024
1 parent 1752973 commit fe258d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/javadoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
with:
java-version: |
22
21
distribution: 'temurin'
- name: Grant execute permission for gradlew
if: ${{ runner.os != 'Windows' }}
Expand Down
11 changes: 10 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Jar>("sourcesJar") {
Expand Down Expand Up @@ -222,6 +225,9 @@ tasks.register("assembleJavadocArgs") {
}

tasks.register<Javadoc>("aggregateJavadoc") {
javadocTool = the<JavaToolchainService>().javadocToolFor {
languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
dependsOn(tasks["assembleJavadocArgs"])
group = "documentation"
outputs.upToDateWhen { false }
Expand All @@ -239,6 +245,9 @@ tasks.register<Javadoc>("aggregateJavadoc") {

allprojects {
tasks.withType<Javadoc> {
javadocTool = the<JavaToolchainService>().javadocToolFor {
languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
options {
if (this is CoreJavadocOptions) {
if (jdkEnablePreview.toBoolean()) {
Expand Down

0 comments on commit fe258d3

Please sign in to comment.