Skip to content

Commit 29a4f88

Browse files
committed
Adapt config to be able to release from version branches
1 parent 131f27e commit 29a4f88

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

build.gradle

+8-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:3.1.0'
77
classpath 'nu.studer:gradle-plugindev-plugin:1.0.3'
88
classpath 'org.codehaus.groovy:groovy-backports-compat23:2.4.3'
9-
classpath 'net.researchgate:gradle-release:2.1.2'
9+
classpath 'net.researchgate:gradle-release:2.2.1'
1010
}
1111
}
1212

@@ -37,6 +37,13 @@ plugindev {
3737
done() // do not omit this
3838
}
3939

40+
release {
41+
git {
42+
requireBranch = '(master|\\d+\\.\\d+)'
43+
pushToCurrentBranch = true
44+
}
45+
}
46+
4047
bintray {
4148
user = project.hasProperty('bintrayUser') ? bintrayUser : ''
4249
key = project.hasProperty('bintrayApiKey') ? bintrayApiKey : ''

0 commit comments

Comments
 (0)