File tree 3 files changed +18
-2
lines changed
3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -54,8 +54,14 @@ if [ "$PROJECT" == "orm" ]; then
54
54
-Pgradle.publish.key=$PLUGIN_PORTAL_USERNAME -Pgradle.publish.secret=$PLUGIN_PORTAL_PASSWORD \
55
55
-PhibernatePublishUsername=$OSSRH_USER -PhibernatePublishPassword=$OSSRH_PASSWORD \
56
56
-DsigningPassword=$RELEASE_GPG_PASSPHRASE -DsigningKeyFile=$RELEASE_GPG_PRIVATE_KEY_PATH
57
+ elif [[ " $PROJECT " == " infra-theme" || " $PROJECT " == " infra-extensions" ]]; then
58
+ ./mvnw release:prepare \
59
+ -Dtag=$RELEASE_VERSION \
60
+ -DreleaseVersion=$RELEASE_VERSION \
61
+ -DdevelopmentVersion=$DEVELOPMENT_VERSION \
62
+ -DperformRelease=true
57
63
elif [ " $PROJECT " != " reactive" ]; then
58
- # Hibernate Reactive does these checks in the `cirelease` task (called by publish.sh)
64
+ # Hibernate Reactive does these checks in the `cirelease` task (called by publish.sh)
59
65
" $SCRIPTS_DIR /check-sourceforge-availability.sh"
60
66
" $SCRIPTS_DIR /update-readme.sh" $PROJECT $RELEASE_VERSION " $WORKSPACE /README.md"
61
67
" $SCRIPTS_DIR /update-changelog.sh" $PROJECT $RELEASE_VERSION " $WORKSPACE /changelog.txt"
Original file line number Diff line number Diff line change @@ -99,6 +99,8 @@ elif [ "$PROJECT" == "reactive" ]; then
99
99
fi
100
100
# Publish the artifact to OSSRH
101
101
exec_or_dry_run ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -PsontaypeOssrhUser=$OSSRH_USER -PsonatypeOssrgPassword=$OSSRH_PASSWORD
102
+ elif [[ " $PROJECT " == " infra-theme" || " $PROJECT " == " infra-extensions" ]]; then
103
+ exec_or_dry_run ./mvnw release:perform -DperformRelease=true
102
104
else
103
105
bash -xe " $SCRIPTS_DIR /deploy.sh" " $PROJECT "
104
106
Original file line number Diff line number Diff line change @@ -110,6 +110,8 @@ elif [ "$PROJECT" == "orm" ]; then
110
110
JIRA_PROJECT=" HHH"
111
111
elif [ " $PROJECT " == " reactive" ]; then
112
112
JIRA_PROJECT=" HREACT"
113
+ elif [[ " $PROJECT " == " infra-theme" || " $PROJECT " == " infra-extensions" ]]; then
114
+ echo ' No JIRA project available'
113
115
else
114
116
echo " ERROR: Unknown project name $PROJECT "
115
117
usage
@@ -186,7 +188,13 @@ if [ "$PUSH_CHANGES" != "true" ]; then
186
188
ADDITIONAL_OPTIONS=" -d"
187
189
fi
188
190
189
- bash -xe " $SCRIPTS_DIR /prepare-release.sh" " $PROJECT " " $RELEASE_VERSION "
191
+ elif [ " $PROJECT " == " infra-theme" || " $PROJECT " == " infra-extensions" ]; then
192
+ # infra projects are using different release plugins than main maven-based projects,
193
+ # and they require both release and development versions:
194
+ bash -xe " $SCRIPTS_DIR /prepare-release.sh" " $PROJECT " " $RELEASE_VERSION " " $DEVELOPMENT_VERSION "
195
+ else
196
+ bash -xe " $SCRIPTS_DIR /prepare-release.sh" " $PROJECT " " $RELEASE_VERSION "
197
+ fi
190
198
191
199
# bash -xe "$SCRIPTS_DIR/jira-release.sh" $ADDITIONAL_OPTIONS "$JIRA_PROJECT" "$RELEASE_VERSION_BASIS" "$NEXT_VERSION_BASIS"
192
200
You can’t perform that action at this time.
0 commit comments