researchgate / gradle-release

gradle-release is a plugin for providing a Maven-like release process for projects using Gradle
MIT License
859 stars 223 forks source link

Cannot trigger task after release #373

Closed btomasini closed 1 year ago

btomasini commented 1 year ago

I am trying to publish to a sonatype repository after release, but am getting the following error:

What is the proper way to trigger this task?

Here is the build file:

https://github.com/activatedio/objectdiff/blob/master/build.gradle

./gradlew release

FAILURE: Build failed with an exception.

* Where:
Build file '/home/btomasini/git/activatedio/objectdiff/build.gradle' line: 55

* What went wrong:
A problem occurred evaluating root project 'objectdiff'.
> Could not get unknown property 'publishToSonatype' for extension 'release' of type net.researchgate.release.ReleaseExtension.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org
btomasini commented 1 year ago

I was able to resolve this by changing the target:

https://github.com/activatedio/objectdiff/blob/master/build.gradle#L60