1- import me.qoomon.gitversioning.commons.GitRefType
21import java.util.Calendar
32import org.jreleaser.model.Active.*
43
@@ -8,23 +7,29 @@ plugins {
87 jacoco
98 id(" org.cadixdev.licenser" ) version " 0.6.1"
109 id(" me.qoomon.git-versioning" ) version " 6.4.4"
11- id(" com.gorylenko.gradle-git-properties" ) version " 2.5.2"
12- id(" io.freefair.lombok" ) version " 8.14.2"
13- id(" io.freefair.javadoc-links" ) version " 8.14.2"
14- id(" io.freefair.javadoc-utf-8" ) version " 8.14.2"
15- id(" io.freefair.maven-central.validate-poms" ) version " 8.14.2"
16- id(" com.github.ben-manes.versions" ) version " 0.52.0"
10+ id(" io.freefair.lombok" ) version " 9.0.0"
11+ id(" io.freefair.javadoc-links" ) version " 9.0.0"
12+ id(" io.freefair.javadoc-utf-8" ) version " 9.0.0"
13+ id(" io.freefair.maven-central.validate-poms" ) version " 9.0.0"
14+ id(" com.github.ben-manes.versions" ) version " 0.53.0"
1715 id(" ru.vyarus.pom" ) version " 3.0.0"
18- id(" org.jreleaser" ) version " 1.19 .0"
16+ id(" org.jreleaser" ) version " 1.20 .0"
1917}
2018
2119group = " io.github.1c-syntax"
2220gitVersioning.apply {
2321 refs {
24- considerTagsOnBranches = true
22+ describeTagFirstParent = false
2523 tag(" v(?<tagVersion>[0-9].*)" ) {
2624 version = " \$ {ref.tagVersion}\$ {dirty}"
2725 }
26+
27+ branch(" develop" ) {
28+ version = " \$ {describe.tag.version.major}." +
29+ " \$ {describe.tag.version.minor.next}.0." +
30+ " \$ {describe.distance}-SNAPSHOT\$ {dirty}"
31+ }
32+
2833 branch(" .+" ) {
2934 version = " \$ {ref}-\$ {commit.short}\$ {dirty}"
3035 }
@@ -34,7 +39,6 @@ gitVersioning.apply {
3439 version = " \$ {commit.short}\$ {dirty}"
3540 }
3641}
37- val isSnapshot = gitVersioning.gitVersionDetails.refType != GitRefType .TAG
3842
3943repositories {
4044 mavenCentral()
@@ -118,11 +122,6 @@ publishing {
118122 publications {
119123 create<MavenPublication >(" maven" ) {
120124 from(components[" java" ])
121-
122- if (isSnapshot && project.hasProperty(" simplifyVersion" )) {
123- version = findProperty(" git.ref.slug" ) as String + " -SNAPSHOT"
124- }
125-
126125 pom {
127126 description.set(" Common utils for 1c-syntax team java projects" )
128127 url.set(" https://github.com/1c-syntax/utils" )
@@ -207,4 +206,3 @@ jreleaser {
207206 }
208207 }
209208}
210-
0 commit comments