Skip to content

Commit 493a861

Browse files
committed
chore(build): add project property for release plugin
1 parent cdf1b60 commit 493a861

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
@@ -198,6 +198,14 @@ release {
198198
git {
199199
requireBranch.set('master')
200200
}
201+
202+
// Dynamically set properties with default values
203+
failOnSnapshotDependencies = (project.hasProperty('release.failOnSnapshotDependencies')
204+
? project.property('release.failOnSnapshotDependencies').toBoolean()
205+
: true)
206+
pushReleaseVersionBranch = (project.hasProperty('release.pushReleaseVersionBranch')
207+
? project.property('release.pushReleaseVersionBranch').toString()
208+
: null)
201209
}
202210

203211
/**********************************************************************************************************************\

0 commit comments

Comments
 (0)