qoomon/gradle-git-versioning-plugin

Kotlin DSL documentation leads to Unmatched closing ')'

jens-meiss opened this issue · 1 comments

if i just copy and paste the example from the README.md

i get a org.gradle.internal.exceptions.LocationAwareException

i think it's because the pattern for the "/pull" prefix is invalid:

branch(closureOf<VersionDescription>{
        pattern = "pull/.+)"
        versionFormat = "\${branch}-SNAPSHOT"
})

leads to: Unmatched closing ')' near index 6 pull/.+)

think it should be like:

branch(closureOf<VersionDescription>{
        pattern = "pull/(.+)"
        versionFormat = "\${branch}-SNAPSHOT"
})

works for me at least :D


Full stacktrace:

Unmatched closing ')' near index 6
pull/.+)
      ^
	at org.gradle.kotlin.dsl.execution.InterpreterKt$locationAwareExceptionFor$2.invoke(Interpreter.kt:558)
	at org.gradle.kotlin.dsl.execution.InterpreterKt.locationAwareExceptionFor(Interpreter.kt:565)
	at org.gradle.kotlin.dsl.execution.InterpreterKt.locationAwareExceptionHandlingFor(Interpreter.kt:531)
	at org.gradle.kotlin.dsl.execution.InterpreterKt.access$locationAwareExceptionHandlingFor(Interpreter.kt:1)
	at org.gradle.kotlin.dsl.execution.Interpreter$ProgramHost.handleScriptException(Interpreter.kt:381)
	at Program.execute(Unknown Source)

Hi hi, thanks for reporting. You are right thats's a typo. I will fix it right away.