Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for string interpolation with curly braces ${} #8

Closed
usr42 opened this issue Oct 28, 2018 · 1 comment
Closed

Support for string interpolation with curly braces ${} #8

usr42 opened this issue Oct 28, 2018 · 1 comment

Comments

@usr42
Copy link
Contributor

usr42 commented Oct 28, 2018

First, thanks for the super-fast implementation of #7

Now to my new request:
Using the dollar-only notation $versionVariable works.
But Groovy and Kotlin (and so gradle DSL) also supports the dollar with curly braces notation: ${versionVariable}
If I use this notation the version is not automatically updated.

Example to reproduce:

dependencies {
    ext {
        junitJupiterVersion='5.3.0-RC1'
    }

    testCompile "org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}"
    testRuntime "org.junit.jupiter:junit-jupiter-engine:${junitJupiterVersion}"
}

The following is successful:

dependencies {
    ext {
        junitJupiterVersion='5.3.0-RC1'
    }

    testCompile "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
    testRuntime "org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion"
}

It would be nice if also the curly braces (${}) notation would work.

Thanks and cheers,
usr42 / Balthasar

@patrikerdes
Copy link
Owner

Thanks for reporting this 👍
Fixed in 0.2.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants