We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47cd06c commit 2e92cfdCopy full SHA for 2e92cfd
release/release.gradle
@@ -225,14 +225,14 @@ def releaseChecksTask = tasks.register( "releaseChecks" ) {
225
String gitBranchLocal
226
String gitRemoteLocal
227
228
- if (project.hasProperty('gitBranch')) {
+ if (project.hasProperty('gitBranch') && !project.property('gitBranch').isEmpty()) {
229
gitBranchLocal = project.property('gitBranch')
230
}
231
else {
232
gitBranchLocal = executeGitCommand( 'branch', '--show-current' ).trim()
233
234
235
- if (project.hasProperty('gitRemote')) {
+ if (project.hasProperty('gitRemote') && !project.property('gitRemote').isEmpty()) {
236
gitRemoteLocal = project.property('gitRemote')
237
238
0 commit comments