-
Notifications
You must be signed in to change notification settings - Fork 155
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
VersionProperties.Incrementer in Kotlin != groovy.lang.Closure #622
Comments
Hi @duschata, nice work finding the issue. |
Hi @bgalek , |
bgalek
pushed a commit
that referenced
this issue
May 24, 2023
…r to run in right condition if dsl is kotlin (#626) Test & Documentation
Hi All, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hallo All,
working with the just fixed #590 issue. I run into the next problem using kotlin dsl.
Have a look at the failing test here:
https://github.com/duschata/axion-release-plugin/blob/mcve_kotlin_closure/src/integration/groovy/pl/allegro/tech/build/axion/release/KotlinDslCompatibilityTests.groovy#L89
Kotlin needs a strong typed VersionProperties.Incrementer here, but the condition in the VersionPropertiesFactory
https://github.com/duschata/axion-release-plugin/blob/mcve_kotlin_closure/src/main/groovy/pl/allegro/tech/build/axion/release/infrastructure/config/VersionPropertiesFactory.groovy#L68-L74
evaluates a (!)Closure and the kotlin lambda runs always into the wrong condition.
What can we do there,
what do you think?
kind regards, Tom
The text was updated successfully, but these errors were encountered: