Skip to content

Commit 1982629

Browse files
authored
Gradle 6 Workaround for multi-project release (#349)
1 parent cd5b366 commit 1982629

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/groovy/net/researchgate/release/ReleasePlugin.groovy

+6
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ class ReleasePlugin extends PluginHelper implements Plugin<Project> {
5858
"${p}updateVersion" as String,
5959
"${p}commitNewVersion" as String
6060
]
61+
62+
// Gradle 6 workaround (https://github.com/gradle/gradle/issues/12872)
63+
buildName = project.name + "-release"
6164
}
6265

6366
project.task('createScmAdapter', group: RELEASE_GROUP,
@@ -93,6 +96,9 @@ class ReleasePlugin extends PluginHelper implements Plugin<Project> {
9396
"${p}afterReleaseBuild" as String
9497
].flatten()
9598
}
99+
100+
// Gradle 6 workaround (https://github.com/gradle/gradle/issues/12872)
101+
buildName = project.name + "-release"
96102
}
97103
project.task('preTagCommit', group: RELEASE_GROUP,
98104
description: 'Commits any changes made by the Release plugin - eg. If the unSnapshotVersion task was executed') doLast this.&preTagCommit

0 commit comments

Comments
 (0)