Skip to content

Commit fb19bcf

Browse files
committed
update plugins
1 parent 5551c02 commit fb19bcf

File tree

6 files changed

+33
-17
lines changed

6 files changed

+33
-17
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
* Update ru.vyarus.java-lib 2.2.2 -> 2.3.1
2+
* Update ru.vyarus.github-info 1.3.0 -> 1.4.0
3+
* Update ru.vyarus.quality 4.6.0 -> 4.8.0
4+
* Update com.github.ben-manes.versions 0.39.0 -> 0.44.0
5+
* Update et.researchgate.release 2.8.1 -> 3.0.2
6+
17
### 3.0.3 (2021-10-27)
28
* Update ru.vyarus.java-lib 2.2.1 -> 2.2.2 (disable publication option, support submodules without coverage)
39
* Fix multi-module with bom maven central publication:

app/templates/project-multi/build.gradle

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
plugins {
2-
id 'ru.vyarus.github-info' version '1.3.0' apply false<% if (enableQualityChecks) { %>
3-
id 'ru.vyarus.quality' version '4.6.0' apply false<% } %>
2+
id 'ru.vyarus.github-info' version '1.4.0' apply false<% if (enableQualityChecks) { %>
3+
id 'ru.vyarus.quality' version '4.8.0' apply false<% } %>
44

55
id 'jacoco'
66
id 'java-platform'
7-
id 'ru.vyarus.java-lib' version '2.2.2'
8-
id 'net.researchgate.release' version '2.8.1'
7+
id 'ru.vyarus.java-lib' version '2.3.1'
8+
id 'net.researchgate.release' version '3.0.2'
99
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
10-
id 'com.github.ben-manes.versions' version '0.39.0'
10+
id 'com.github.ben-manes.versions' version '0.44.0'
1111
}
1212

1313
wrapper {
@@ -75,10 +75,11 @@ allprojects {
7575
}
7676
}
7777

78-
javaLib {
79-
// don't publish gradle metadata artifact
80-
withoutGradleMetadata()
81-
}
78+
// don't publish gradle metadata artifact
79+
javaLib.withoutGradleMetadata()
80+
81+
// skip signing for jitpack (snapshots)
82+
tasks.withType(Sign) {onlyIf { !System.getenv('JITPACK') }}
8283
}
8384

8485
// all sub-modules are normal java modules, using root BOM (like maven)
@@ -137,6 +138,8 @@ nexusPublishing {
137138
// Required signing properties for release: signing.keyId, signing.password and signing.secretKeyRingFile
138139
// (https://docs.gradle.org/current/userguide/signing_plugin.html#sec:signatory_credentials)
139140

141+
//release.git.requireBranch.set('master') // default is main branch
142+
140143
// release manages only root project (subprojects will be checked and released implicitly)
141144
afterReleaseBuild {
142145
dependsOn 'publishToSonatype'

app/templates/project-multi/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pluginManagement {
55
}
66
}
77
plugins {
8-
id "com.gradle.enterprise" version "3.2.1"
8+
id "com.gradle.enterprise" version "3.12.1"
99
}
1010

1111
gradleEnterprise {

app/templates/project-single/build.gradle

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

1414
sourceCompatibility = 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

6668
nexusPublishing {
@@ -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+
7885
afterReleaseBuild {
7986
dependsOn = ['publishToSonatype',
8087
'closeAndReleaseSonatypeStagingRepository']

app/templates/project-single/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pluginManagement {
55
}
66
}
77
plugins {
8-
id "com.gradle.enterprise" version "3.2.1"
8+
id "com.gradle.enterprise" version "3.12.1"
99
}
1010

1111
gradleEnterprise {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "generator-lib-java",
3-
"version": "3.0.3",
3+
"version": "3.1.0",
44
"type": "commonjs",
55
"description": "Java library project generator, hosted on github, build with gradle and published to maven central",
66
"license": "MIT",

0 commit comments

Comments
 (0)