File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 distribution : ' graalvm-community'
4545
4646 - name : Publish Release to Github
47- run : ./gradlew jreleaserRelease --stacktrace --no-daemon
47+ run : ./gradlew jreleaserRelease -Prelease - -stacktrace --no-daemon
4848 env :
4949 JRELEASER_GITHUB_TOKEN : ${{ secrets.FLAMINGOCK_JRELEASER_GITHUB_TOKEN }}
5050 JRELEASER_GPG_PUBLIC_KEY : ${{ secrets.FLAMINGOCK_JRELEASER_GPG_PUBLIC_KEY }}
Original file line number Diff line number Diff line change @@ -60,16 +60,16 @@ jobs:
6060 - name : Prepare maven publish
6161 run : |
6262 if [ -n "${{ inputs.module }}" ]; then
63- ./gradlew publish -Pmodule=${{ inputs.module }}
63+ ./gradlew publish -Prelease - Pmodule=${{ inputs.module }}
6464 else
65- ./gradlew publish
65+ ./gradlew publish -Prelease
6666 fi
6767 env :
6868 JRELEASER_MAVENCENTRAL_USERNAME : ${{ secrets.FLAMINGOCK_JRELEASER_MAVENCENTRAL_USERNAME }}
6969 JRELEASER_MAVENCENTRAL_PASSWORD : ${{ secrets.FLAMINGOCK_JRELEASER_MAVENCENTRAL_PASSWORD }}
7070
7171 - name : Release to Maven Central portal
72- run : ./infra/module-release-with-retry.sh ${{ inputs.module }} 5 20
72+ run : ./infra/module-release-with-retry.sh " ${{ inputs.module }}" 5 20 -Prelease
7373 env :
7474 JRELEASER_GITHUB_TOKEN : ${{ secrets.FLAMINGOCK_JRELEASER_GITHUB_TOKEN }}
7575 JRELEASER_MAVENCENTRAL_USERNAME : ${{ secrets.FLAMINGOCK_JRELEASER_MAVENCENTRAL_USERNAME }}
Original file line number Diff line number Diff line change 1+ import io.flamingock.build.VersionManager
2+ import io.flamingock.build.PrintVersionTask
3+
14plugins {
25 `java- library`
36 `maven- publish`
@@ -7,7 +10,8 @@ plugins {
710
811
912group = " io.flamingock"
10- version = " 1.3.2-SNAPSHOT"
13+ val declaredVersion = " 1.3.2-SNAPSHOT"
14+ version = VersionManager .resolveVersion(declaredVersion, project.hasProperty(" release" ))
1115
1216repositories {
1317 mavenLocal()
@@ -242,3 +246,5 @@ tasks.register("createStagingDeployFolder") {
242246tasks.matching { it.name == " publish" }.configureEach {
243247 finalizedBy(" createStagingDeployFolder" )
244248}
249+
250+ tasks.register<PrintVersionTask >(" printVersion" )
Original file line number Diff line number Diff line change 1+ plugins {
2+ `kotlin- dsl`
3+ }
4+
5+ repositories {
6+ mavenCentral()
7+ }
Original file line number Diff line number Diff line change 33module=$1
44maxAttempts=${2:- 3}
55waitingSeconds=${3:- 20}
6+ shift 3 2> /dev/null || true
7+ extraFlags=" $* "
68
79if [ -n " $module " ]; then
810 MODULE_FLAG=" -Pmodule=$module "
1214 echo " Releasing bundle to Central Portal with max attempts[$maxAttempts ] and $waitingSeconds seconds delay"
1315fi
1416for (( i= 1 ; i<= maxAttempts; i++ )) ; do
15- if ./gradlew jreleaserDeploy $MODULE_FLAG --no-daemon --stacktrace; then
17+ if ./gradlew jreleaserDeploy $MODULE_FLAG $extraFlags --no-daemon --stacktrace; then
1618 exit 0
1719 fi
1820 if [ " $i " -eq " $maxAttempts " ]; then
You can’t perform that action at this time.
0 commit comments