74
74
75
75
RELEASE_VERSION_FAMILY=$( echo " $RELEASE_VERSION " | sed -E ' s/^([0-9]+\.[0-9]+).*/\1/' )
76
76
77
- if [ " $PROJECT " == " orm" ]; then
77
+ if [ " $PROJECT " == " orm" ] || [ " $PROJECT " == " reactive " ] ; then
78
78
git config user.email
[email protected]
79
79
git config user.name Hibernate-CI
80
80
exec_or_dry_run ./gradlew releasePerform closeAndReleaseSonatypeStagingRepository -x test --no-scan --no-daemon \
@@ -83,22 +83,6 @@ if [ "$PROJECT" == "orm" ]; then
83
83
-Pgradle.publish.key=$PLUGIN_PORTAL_USERNAME -Pgradle.publish.secret=$PLUGIN_PORTAL_PASSWORD \
84
84
-PhibernatePublishUsername=$OSSRH_USER -PhibernatePublishPassword=$OSSRH_PASSWORD \
85
85
-DsigningPassword=$RELEASE_GPG_PASSPHRASE -DsigningKeyFile=$RELEASE_GPG_PRIVATE_KEY_PATH --stacktrace
86
-
87
- elif [ " $PROJECT " == " reactive" ]; then
88
- git config user.email
[email protected]
89
- git config user.name Hibernate-CI
90
-
91
- # Update the project development version and create the tag for the version to be released
92
- exec_or_dry_run ./gradlew ciRelease -PreleaseVersion=$RELEASE_VERSION -PdevelopmentVersion=$DEVELOPMENT_VERSION -PgitRemote=origin -PgitBranch=$BRANCH
93
- # Create the artifacts and the documentation
94
- exec_or_dry_run ./gradlew assemble
95
- # We don't publish the documentation for snapshots
96
- if [[ $RELEASE_VERSION != * -SNAPSHOT ]]; then
97
- # Publish the documentation on hibernate.org (production branch)
98
- exec_or_dry_run ./gradlew publishDocumentation -PdocPublishBranch=production
99
- fi
100
- # Publish the artifact to OSSRH
101
- exec_or_dry_run ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -PsontaypeOssrhUser=$OSSRH_USER -PsonatypeOssrgPassword=$OSSRH_PASSWORD
102
86
else
103
87
bash -xe " $SCRIPTS_DIR /deploy.sh" " $PROJECT "
104
88
if [[ " $PROJECT " != " infra-theme" && " $PROJECT " != " infra-extensions" ]]; then
0 commit comments