Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICU-22595 GitHub release file generation script to include javadoc fo… #2729

Merged
merged 1 commit into from
Dec 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions icu4j/releases_tools/github_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ function copyArtifactForGithubRelease() {
# Copy artifacts in the output folder
mvn dependency:copy -q -Dmdep.stripVersion=true -Dartifact=com.ibm.icu:${artifactId}:${artifact_version} -DoutputDirectory=${release_folder}
mvn dependency:copy -q -Dmdep.stripVersion=true -Dartifact=com.ibm.icu:${artifactId}:${artifact_version}:jar:sources -DoutputDirectory=${release_folder}
mvn dependency:copy -q -Dmdep.stripVersion=true -Dartifact=com.ibm.icu:${artifactId}:${artifact_version}:jar:javadoc -DoutputDirectory=${release_folder}
# Change the names
mv ${release_folder}/${artifactId}.jar ${release_folder}/${artifactId}-${github_rel_version}.jar
mv ${release_folder}/${artifactId}-sources.jar ${release_folder}/${artifactId}-${github_rel_version}-sources.jar
mv ${release_folder}/${artifactId}-javadoc.jar ${release_folder}/${artifactId}-${github_rel_version}-javadoc.jar
}

# ====================================================================================
Expand All @@ -30,7 +32,7 @@ checkThatJdk8IsDefault

reportTitle Prepare folder with artifacts for GitHub release

mvn clean install -DskipITs -DskipTests -P with_sources
mvn clean install -DskipITs -DskipTests -P with_sources,with_javadoc

rm -fr ${release_folder}
mkdir -p ${release_folder}
Expand All @@ -45,7 +47,7 @@ reportTitle Prepare complete javadoc for GitHub release

mvn site -DskipITs -DskipTests -P with_full_javadoc

jar -Mcf ${release_folder}/icu4j-${github_rel_version}-javadoc.jar -C ${out_dir}/site/apidocs/ .
jar -Mcf ${release_folder}/icu4j-${github_rel_version}-fulljavadoc.jar -C ${out_dir}/site/apidocs/ .

# ====================================================================================

Expand Down