Skip to content

Commit

Permalink
Post 4.0.2 release changes (helidon-io#8176)
Browse files Browse the repository at this point in the history
* Update release for new docs/javadocs build

* Use generate-resources for the javadoc execution to make sure it's included in helidon-docs.jar

---------

Co-authored-by: Joe Di Pol <[email protected]>
  • Loading branch information
romain-grecourt and barchetta authored Dec 20, 2023
1 parent 99ab65c commit b2a7dcf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 35 deletions.
4 changes: 2 additions & 2 deletions docs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>default</id>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
Expand All @@ -95,7 +95,7 @@
<artifactId>helidon-javadoc-maven-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<phase>generate-resources</phase>
<goals>
<goal>javadoc</goal>
</goals>
Expand Down
34 changes: 1 addition & 33 deletions etc/scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,35 +174,6 @@ update_version(){
fi
}

release_site(){
if [ -n "${STAGING_REPO_ID}" ] ; then
readonly MAVEN_REPO_URL="https://oss.sonatype.org/service/local/staging/deployByRepositoryId/${STAGING_REPO_ID}/"
else
readonly MAVEN_REPO_URL="https://oss.sonatype.org/service/local/staging/deploy/maven2/"
fi

# Generate site
mvn ${MAVEN_ARGS} site

# Sign site jar
gpg -ab ${WS_DIR}/target/helidon-project-${FULL_VERSION}-site.jar

# Deploy site.jar and signature file explicitly using deploy-file
mvn ${MAVEN_ARGS} deploy:deploy-file \
-Dfile="${WS_DIR}/target/helidon-project-${FULL_VERSION}-site.jar" \
-Dfiles="${WS_DIR}/target/helidon-project-${FULL_VERSION}-site.jar.asc" \
-Dclassifier="site" \
-Dclassifiers="site" \
-Dtypes="jar.asc" \
-DgeneratePom="false" \
-DgroupId="io.helidon" \
-DartifactId="helidon-project" \
-Dversion="${FULL_VERSION}" \
-Durl="${MAVEN_REPO_URL}" \
-DrepositoryId="ossrh" \
-DretryFailedDeploymentCount="10"
}

release_build(){
# Do the release work in a branch
local GIT_BRANCH="release/${FULL_VERSION}"
Expand Down Expand Up @@ -240,7 +211,7 @@ release_build(){

# Perform deployment
mvn ${MAVEN_ARGS} clean deploy \
-Prelease,archetypes \
-Prelease,archetypes,javadoc,docs \
-DskipTests \
-DstagingRepositoryId="${STAGING_REPO_ID}" \
-DretryFailedDeploymentCount="10"
Expand All @@ -252,9 +223,6 @@ release_build(){
done
fi

# Release site (documentation, javadocs)
release_site

# Close the nexus staging repository
mvn ${MAVEN_ARGS} nexus-staging:rc-close \
-DstagingRepositoryId="${STAGING_REPO_ID}" \
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1293,6 +1293,7 @@
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
Expand Down

0 comments on commit b2a7dcf

Please sign in to comment.