Skip to content

Commit 983b78b

Browse files
committed
chore: add default value for svnMuccTask.asfDryRun=false
1 parent f5937f7 commit 983b78b

File tree

1 file changed

+5
-1
lines changed
  • plugins/stage-vote-release-plugin/src/main/kotlin/com/github/vlsi/gradle/release

1 file changed

+5
-1
lines changed

plugins/stage-vote-release-plugin/src/main/kotlin/com/github/vlsi/gradle/release/SvnmuccTask.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ abstract class SvnmuccTask @Inject constructor() : DefaultTask() {
9696

9797
@Input
9898
protected val asfDryRun = project.objects.property<Boolean>()
99-
.convention(project.providers.gradleProperty("asfDryRun").map { it.toBool() })
99+
.convention(
100+
project.providers.gradleProperty("asfDryRun")
101+
.map { it.toBool() }
102+
.orElse(false)
103+
)
100104

101105
protected fun svnClient(uri: URI) =
102106
Svn(execOperations, logger, projectDir.asFile, uri)

0 commit comments

Comments
 (0)