File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 11plugins {
22 base
33 kotlin(" jvm" ) version " 1.4.10" apply false
4- id(" net.researchgate.release" ) version " 2.6.0 "
4+ id(" net.researchgate.release" ) version " 2.8.1 "
55 id(" io.codearte.nexus-staging" ) version " 0.21.2"
66}
77
@@ -23,6 +23,10 @@ release {
2323 preTagCommitMessage = " [Gradle Release Plugin] Release version"
2424 tagCommitMessage = " [Gradle Release Plugin] Release version"
2525 newVersionCommitMessage = " [Gradle Release Plugin] New version"
26+
27+ git {
28+ requireBranch = " main"
29+ }
2630}
2731
2832val mavenCentralUsername: String? by project
@@ -34,3 +38,7 @@ nexusStaging {
3438 numberOfRetries = 60
3539 delayBetweenRetriesInMillis = 10_000
3640}
41+
42+ fun net.researchgate.release.ReleaseExtension.git (
43+ configure : net.researchgate.release.GitAdapter .GitConfig .() -> Unit
44+ ) = (getProperty(" git" ) as net.researchgate.release.GitAdapter .GitConfig ).configure()
You can’t perform that action at this time.
0 commit comments