File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
apply from : rootProject. file( ' gradle/base-information.gradle' )
2
2
3
3
task release {
4
- dependsOn ' :release:releaseChecks'
5
4
mustRunAfter ' :release:releaseChecks'
6
5
enabled ! project. ormVersion. isSnapshot
7
6
}
Original file line number Diff line number Diff line change @@ -229,14 +229,14 @@ def releaseChecksTask = tasks.register( "releaseChecks" ) {
229
229
gitBranchLocal = project. property(' gitBranch' )
230
230
}
231
231
else {
232
- gitBranchLocal = executeGitCommand( ' branch' , ' --show-current' )
232
+ gitBranchLocal = executeGitCommand( ' branch' , ' --show-current' ). trim()
233
233
}
234
234
235
235
if (project. hasProperty(' gitRemote' )) {
236
236
gitRemoteLocal = project. property(' gitRemote' )
237
237
}
238
238
else {
239
- final String remotes = executeGitCommand( ' remote' , ' show' )
239
+ final String remotes = executeGitCommand( ' remote' , ' show' ). trim()
240
240
final List<String > tokens = remotes. tokenize()
241
241
if ( tokens. size() != 1 ) {
242
242
throw new GradleException ( " Could not determine `gitRemote` property for `releaseChecks` tasks." )
@@ -263,7 +263,7 @@ def releaseChecksTask = tasks.register( "releaseChecks" ) {
263
263
}
264
264
}
265
265
266
- def preVerifyReleaseTask = tasks. register( " preVerifyRelease" ){
266
+ def preVerifyReleaseTask = tasks. register( " preVerifyRelease" ) {
267
267
group ' Release'
268
268
description ' Pre-verifies a release job execution (Run locally before a CI release)'
269
269
You can’t perform that action at this time.
0 commit comments