Skip to content

Commit 670ba90

Browse files
committed
chore(build): add project property for release plugin
1 parent 431d686 commit 670ba90

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

build.gradle

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,17 @@ release {
197197
tagTemplate = 'v${version}'
198198
buildTasks = ['classes']
199199
git {
200-
requireBranch.set('master')
200+
requireBranch.set('develop')
201201
}
202+
203+
// Dynamically set properties with default values
204+
failOnSnapshotDependencies = (project.hasProperty('release.failOnSnapshotDependencies')
205+
? project.property('release.failOnSnapshotDependencies').toBoolean()
206+
: true)
207+
208+
pushReleaseVersionBranch = (project.hasProperty('release.pushReleaseVersionBranch')
209+
? project.property('release.pushReleaseVersionBranch').toString()
210+
: null)
202211
}
203212

204213
/**********************************************************************************************************************\

0 commit comments

Comments
 (0)