From 2803fa7e7b460e1aedcadb784cfa5ea18a193942 Mon Sep 17 00:00:00 2001 From: Arnaud Roques Date: Fri, 12 May 2023 21:46:37 +0200 Subject: [PATCH] chore: add javadoc for MIT because of OSSRH --- .github/scripts/release-snapshot.sh | 2 ++ .github/scripts/release.sh | 2 ++ plantuml-mit/build.gradle.kts | 12 +++++++++++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/scripts/release-snapshot.sh b/.github/scripts/release-snapshot.sh index 74f5596ce..9f27d9a42 100755 --- a/.github/scripts/release-snapshot.sh +++ b/.github/scripts/release-snapshot.sh @@ -22,6 +22,7 @@ cp "build/libs/plantuml-${RELEASE_VERSION}-javadoc.jar" "github_release/plantuml cp "build/libs/plantuml-${RELEASE_VERSION}-sources.jar" "github_release/plantuml-SNAPSHOT-sources.jar" cp "build/libs/plantuml-pdf-${RELEASE_VERSION}.jar" "github_release/plantuml-pdf-SNAPSHOT.jar" cp "plantuml-mit/build/libs/plantuml-mit-${RELEASE_VERSION}.jar" "github_release/plantuml-mit-SNAPSHOT.jar" +cp "plantuml-mit/build/libs/plantuml-mit-${RELEASE_VERSION}-javadoc.jar" "github_release/plantuml-mit-SNAPSHOT-javadoc.jar" cp "plantuml-mit/build/libs/plantuml-mit-${RELEASE_VERSION}-sources.jar" "github_release/plantuml-mit-SNAPSHOT-sources.jar" if [[ -e "build/publications/maven/module.json.asc" ]]; then @@ -33,6 +34,7 @@ if [[ -e "build/publications/maven/module.json.asc" ]]; then cp "build/libs/plantuml-${RELEASE_VERSION}-sources.jar.asc" "github_release/plantuml-SNAPSHOT-sources.jar.asc" cp "build/libs/plantuml-pdf-${RELEASE_VERSION}.jar.asc" "github_release/plantuml-pdf-SNAPSHOT.jar.asc" cp "plantuml-mit/build/libs/plantuml-mit-${RELEASE_VERSION}.jar.asc" "github_release/plantuml-mit-SNAPSHOT.jar.asc" + cp "plantuml-mit/build/libs/plantuml-mit-${RELEASE_VERSION}-javadoc.jar.asc" "github_release/plantuml-mit-SNAPSHOT-javadoc.jar.asc" cp "plantuml-mit/build/libs/plantuml-mit-${RELEASE_VERSION}-sources.jar.asc" "github_release/plantuml-mit-SNAPSHOT-sources.jar.asc" fi diff --git a/.github/scripts/release.sh b/.github/scripts/release.sh index c713160e5..88f7b5f08 100755 --- a/.github/scripts/release.sh +++ b/.github/scripts/release.sh @@ -15,6 +15,7 @@ cp "build/libs/plantuml-pdf-${RELEASE_VERSION}.jar" "github_release/plantuml-pdf #cp "build/libs/plantuml-darwin-amd64-${RELEASE_VERSION}" "github_release/plantuml-darwin-amd64-${RELEASE_VERSION}" #cp "build/libs/plantuml-win-amd64-${RELEASE_VERSION}.exe" "github_release/plantuml-win-amd64-${RELEASE_VERSION}.exe" cp "plantuml-mit/build/libs/plantuml-mit-${RELEASE_VERSION}.jar" "github_release/plantuml-mit-${RELEASE_VERSION}.jar" +cp "plantuml-mit/build/libs/plantuml-mit-${RELEASE_VERSION}-javadoc.jar" "github_release/plantuml-mit-${RELEASE_VERSION}-javadoc.jar" cp "plantuml-mit/build/libs/plantuml-mit-${RELEASE_VERSION}-sources.jar" "github_release/plantuml-mit-${RELEASE_VERSION}-sources.jar" if [[ -e "build/publications/maven/module.json.asc" ]]; then @@ -25,6 +26,7 @@ if [[ -e "build/publications/maven/module.json.asc" ]]; then cp "build/libs/plantuml-${RELEASE_VERSION}-sources.jar.asc" "github_release/plantuml-${RELEASE_VERSION}-sources.jar.asc" cp "build/libs/plantuml-pdf-${RELEASE_VERSION}.jar.asc" "github_release/plantuml-pdf-${RELEASE_VERSION}.jar.asc" cp "plantuml-mit/build/libs/plantuml-mit-${RELEASE_VERSION}.jar.asc" "github_release/plantuml-mit-${RELEASE_VERSION}.jar.asc" + cp "plantuml-mit/build/libs/plantuml-mit-${RELEASE_VERSION}-javadoc.jar.asc" "github_release/plantuml-mit-${RELEASE_VERSION}-javadoc.jar.asc" cp "plantuml-mit/build/libs/plantuml-mit-${RELEASE_VERSION}-sources.jar.asc" "github_release/plantuml-mit-${RELEASE_VERSION}-sources.jar.asc" fi diff --git a/plantuml-mit/build.gradle.kts b/plantuml-mit/build.gradle.kts index 4521301b1..74336df5d 100644 --- a/plantuml-mit/build.gradle.kts +++ b/plantuml-mit/build.gradle.kts @@ -17,7 +17,7 @@ description = "PlantUML" java { withSourcesJar() - //withJavadocJar() + withJavadocJar() registerFeature("pdf") { usingSourceSet(sourceSets["main"]) } @@ -76,6 +76,16 @@ tasks.withType().configureEach { options.encoding = "UTF-8" } +tasks.withType().configureEach { + options { + this as StandardJavadocDocletOptions + addBooleanOption("Xdoclint:none", true) + addStringOption("Xmaxwarns", "1") + encoding = "UTF-8" + isUse = true + } +} + val syncSources by tasks.registering(Sync::class) { from(rootProject.layout.projectDirectory.dir("src")) into(project.layout.buildDirectory.dir("sources/sjpp/java"))