File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 - develop
77
88permissions :
9- contents : read
9+ contents : write
1010
1111jobs :
1212 build :
@@ -17,11 +17,15 @@ jobs:
1717
1818 steps :
1919 - uses : actions/checkout@v3
20+ - name : Generate build number
21+ uses : onyxmueller/build-tag-number@v1
22+ with :
23+ token : ${{ secrets.GITHUB_TOKEN }}
2024 - name : Set up JDK 17
2125 uses : actions/setup-java@v3
2226 with :
2327 java-version : ' 17'
2428 distribution : ' zulu'
2529 cache : gradle
2630 - name : Build the image
27- run : ./gradlew publish -Pfineract.config.username=$ARTIFACTORY_USERNAME -Pfineract.config.password=$ARTIFACTORY_PASSWORD
31+ run : ./gradlew publish -Pfineract.config.username=$ARTIFACTORY_USERNAME -Pfineract.config.password=$ARTIFACTORY_PASSWORD -Pfineract.release.version=${BUILD_NUMBER}
Original file line number Diff line number Diff line change @@ -824,7 +824,11 @@ configure(project.fineractPublishProjects) {
824824 mavenJava(MavenPublication ) {
825825 groupId ' org.apache.fineract'
826826 artifactId project. name
827- version " ${ project.version} -SNAPSHOT"
827+ if (project. hasProperty(' fineract.release.version' )) {
828+ version " ${ project.version} "
829+ } else {
830+ version " ${ project.version} -SNAPSHOT"
831+ }
828832
829833 from components. java
830834
@@ -862,7 +866,7 @@ configure(project.fineractPublishProjects) {
862866
863867 maven {
864868 name ' mifos'
865- url hasProperty(' fineract.release.version' ) ? releaseUrl : stagingUrl
869+ url project . hasProperty(' fineract.release.version' ) ? releaseUrl : stagingUrl
866870 credentials {
867871 username " ${ findProperty('fineract.config.username')} "
868872 password " ${ findProperty('fineract.config.password')} "
You can’t perform that action at this time.
0 commit comments