Skip to content

Commit 9d585c5

Browse files
committed
chore(build): add project property for release plugin
1 parent cec1427 commit 9d585c5

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
@@ -236,6 +236,14 @@ release {
236236
git {
237237
requireBranch.set('master')
238238
}
239+
240+
// Dynamically set properties with default values
241+
failOnSnapshotDependencies = (project.hasProperty('release.failOnSnapshotDependencies')
242+
? project.property('release.failOnSnapshotDependencies').toBoolean()
243+
: true)
244+
pushReleaseVersionBranch = (project.hasProperty('release.pushReleaseVersionBranch')
245+
? project.property('release.pushReleaseVersionBranch').toString()
246+
: null)
239247
}
240248

241249
/**********************************************************************************************************************\

0 commit comments

Comments
 (0)