You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FAILURE: Build failed with an exception.
* Where:
Build file 'build.gradle.kts' line: 126
* What went wrong:
Script compilation errors:
Line 126: fileUpdate {
^ Unresolved reference: fileUpdate
Line 128: pattern = {previousVersion,context -> "version: $previousVersion"}
^ Unresolved reference: pattern
Line 128: pattern = {previousVersion,context -> "version: $previousVersion"}
^ Cannot infer a type for this parameter. Please specify it explicitly.
Line 128: pattern = {previousVersion,context -> "version: $previousVersion"}
^ Cannot infer a type for this parameter. Please specify it explicitly.
Line 129: replacement = {currentVersion,context -> "version: $currentVersion"}
^ Unresolved reference: replacement
Line 129: replacement = {currentVersion,context -> "version: $currentVersion"}
^ Cannot infer a type for this parameter. Please specify it explicitly.
Line 129: replacement = {currentVersion,context -> "version: $currentVersion"}
^ Cannot infer a type for this parameter. Please specify it explicitly.
7 errors
I have also tried to use:
pre(
"fileUpdate", mapOf(
"encoding" to "utf-8",
"file" to file("README.md"),
"pattern" to KotlinClosure2({ pv: String, _: HookContext -> "version: $previousVersion" }),
"replacement" to KotlinClosure2({ cv: String, _: HookContext -> "version: $previousVersion" })
)
)
but this also fails. Am I doing something wrong or is this is a bug?
The text was updated successfully, but these errors were encountered:
I have tried using the Kotlin DSL as described https://axion-release-plugin.readthedocs.io/en/latest/examples/examples/, but I can't get it working.
Using the following code:
I get the following error:
I have also tried to use:
but this also fails. Am I doing something wrong or is this is a bug?
The text was updated successfully, but these errors were encountered: