Skip to content

Commit 3c6aa80

Browse files
committed
chore(build): add project property for release plugin
1 parent b8827a2 commit 3c6aa80

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,14 @@ release {
192192
git {
193193
requireBranch.set('master')
194194
}
195+
196+
// Dynamically set properties with default values
197+
failOnSnapshotDependencies = (project.hasProperty('release.failOnSnapshotDependencies')
198+
? project.property('release.failOnSnapshotDependencies').toBoolean()
199+
: true)
200+
pushReleaseVersionBranch = (project.hasProperty('release.pushReleaseVersionBranch')
201+
? project.property('release.pushReleaseVersionBranch').toString()
202+
: null)
195203
}
196204

197205
/**********************************************************************************************************************\

0 commit comments

Comments
 (0)