This is an automated email from the ASF dual-hosted git repository.

aleks pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new 2b4c932dd FINERACT-1999: Publish snapshot versions without signing
2b4c932dd is described below

commit 2b4c932ddd62a50c686be314c442aafa1bae2eee
Author: Aleks <[email protected]>
AuthorDate: Sat Nov 4 14:09:28 2023 +0100

    FINERACT-1999: Publish snapshot versions without signing
---
 build.gradle | 27 +++++++++++++++++----------
 1 file changed, 17 insertions(+), 10 deletions(-)

diff --git a/build.gradle b/build.gradle
index 4d932bdd9..c35b29f70 100644
--- a/build.gradle
+++ b/build.gradle
@@ -99,21 +99,23 @@ description = '''\
 Run as:
 gradle clean bootRun'''
 
-version = "0.0.0-SNAPSHOT"
+version = '0.0.0-SNAPSHOT'
+
 gitVersioning.apply {
     refs {
         considerTagsOnBranches = true
+        describeTagPattern = '.*(\\d+\\.\\d+\\.\\d+).*'
+        describeTagFirstParent = false
 
-        tag("(?<version>.*)") {
-            version = "\${ref.version}"
+        branch("\\d+\\.\\d+\\.\\d+") {
+            version = 
'${describe.tag.version.major}.${describe.tag.version.minor}.${describe.tag.version.patch}'
         }
-
-        branch(".+") {
-            version = 
"\${describe.tag.version.major}.\${describe.tag.version.minor}.\${describe.tag.version.patch.next}-SNAPSHOT"
+        branch("maintenance\\/\\d+\\.\\d+") {
+            version = 
'${describe.tag.version.major}.${describe.tag.version.minor}.${describe.tag.version.patch}'
         }
     }
     rev {
-        version = "\${commit}"
+        version = 
'${describe.tag.version.major}.${describe.tag.version.minor.next}.${describe.tag.version.patch}-SNAPSHOT'
     }
 }
 
@@ -693,7 +695,10 @@ configure(project.fineractCustomProjects) {
 
 configure(project.fineractPublishProjects) {
     apply plugin: 'maven-publish'
-    apply plugin: 'signing'
+
+    if (!project.hasProperty('noSign')) {
+        apply plugin: 'signing'
+    }
 
     publishing {
         publications {
@@ -747,8 +752,10 @@ configure(project.fineractPublishProjects) {
         }
     }
 
-    signing {
-        sign publishing.publications.mavenJava
+    if (!project.hasProperty('noSign')) {
+        signing {
+            sign publishing.publications.mavenJava
+        }
     }
 }
 

Reply via email to