allegro / allegro/axion-release-plugin

Error with Kotlin DSL Example from documentation

未關閉
#667 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Groovy
星號
641
分支
165
平均合併
49 分鐘
30 天內合併 PR
9

描述

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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。