@@ -3,12 +3,12 @@ plugins {
33 id ' jacoco'
44 id ' project-report'
55 id ' signing'
6- id ' ru.vyarus.java-lib' version ' 2.2 .1'
7- id ' ru.vyarus.github-info' version ' 1.3 .0' < % if (enableQualityChecks) { % >
8- id ' ru.vyarus.quality' version ' 4.6 .0' < % } % >
9- id ' net.researchgate.release' version ' 2.8.1 '
6+ id ' ru.vyarus.java-lib' version ' 2.3 .1'
7+ id ' ru.vyarus.github-info' version ' 1.4 .0' < % if (enableQualityChecks) { % >
8+ id ' ru.vyarus.quality' version ' 4.8 .0' < % } % >
9+ id ' net.researchgate.release' version ' 3.0.2 '
1010 id ' io.github.gradle-nexus.publish-plugin' version ' 1.1.0'
11- id ' com.github.ben-manes.versions' version ' 0.39 .0'
11+ id ' com.github.ben-manes.versions' version ' 0.44 .0'
1212}
1313
1414sourceCompatibility = 1.8
@@ -61,6 +61,8 @@ javaLib {
6161 withoutGradleMetadata()
6262 // use only direct dependencies in the generated pom, removing BOM mentions
6363 pom. removeDependencyManagement()
64+ // put resolved dependencies versions
65+ // pom.forceVersions()
6466}
6567
6668nexusPublishing {
@@ -72,9 +74,14 @@ nexusPublishing {
7274 }
7375}
7476
77+ // skip signing for jitpack (snapshots)
78+ tasks. withType(Sign ) {onlyIf { ! System . getenv(' JITPACK' ) }}
79+
7580// Required signing properties for release: signing.keyId, signing.password and signing.secretKeyRingFile
7681// (https://docs.gradle.org/current/userguide/signing_plugin.html#sec:signatory_credentials)
7782
83+ // release.git.requireBranch.set('master') //default is main branch
84+
7885afterReleaseBuild {
7986 dependsOn = [' publishToSonatype' ,
8087 ' closeAndReleaseSonatypeStagingRepository' ]
0 commit comments