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

Error with Kotlin DSL Example from documentation #667

Open
sykotron4 opened this issue Oct 10, 2023 · 0 comments
Open

Error with Kotlin DSL Example from documentation #667

sykotron4 opened this issue Oct 10, 2023 · 0 comments

Comments

@sykotron4
Copy link

sykotron4 commented Oct 10, 2023

This is likely just be an issue with my understanding, but I'm struggling to use the Kotlin DSL example as is from https://axion-release-plugin.readthedocs.io/en/latest/examples/examples/#use-with-gradle-kotlin-dsl. I'm getting this error:

Could not find method preRelease() for arguments [build_7s1cs3byhie618xeiy2p2tset$_run_closure1$_closure7$_closure16$_closure31@329fd6c0] on object of type pl.allegro.tech.build.axion.release.domain.hooks.HooksConfig.

I do see "preReleaseHooks" defined in HooksConfig, but I wouldn't expect the documentation to be out-of-date on that and changing "preRelease" to "preReleaseHooks" still gives me an error anyway: https://github.com/allegro/axion-release-plugin/blob/main/src/main/groovy/pl/allegro/tech/build/axion/release/domain/hooks/HooksConfig.groovy

Is there just another plugin I'm missing? I've already got maven-publish as mentioned in the Axion documentation, but I don't think that's coming into play yet.

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

1 participant