Error with Kotlin DSL Example from documentation
sykotron4 opened this issue · 0 comments
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.