When using the JReleaser Gradle plugin, the name of the Maven deploy configuration doesn't support dashes. Either avoid dashes or write the name within single quotes.
A problem occurred evaluating root project 'my-project'.
> No signature of method: org.jreleaser.gradle.plugin.internal.dsl.deploy.maven.MavenImpl.minus() is applicable for argument types: (org.jreleaser.gradle.plugin.internal.dsl.deploy.maven.Nexus2MavenDeployerImpl_Decorated) values: [org.jreleaser.gradle.plugin.internal.dsl.deploy.maven.Nexus2MavenDeployerImpl_Decorated@4b10dfee]
Possible solutions: find(), find(groovy.lang.Closure), is(java.lang.Object), any(), gitea(groovy.lang.Closure), gitea(org.gradle.api.Action)
When using the JReleaser Gradle plugin, the name of the Maven deploy configuration doesn't support dashes. Either avoid dashes or write the name within single quotes.
The following throws an error:
The error:
The correct version:
PR with the fix: https://github.com/jreleaser/jreleaser.github.io/pull/74