JavierSegoviaCordoba / semver-gradle-plugin

Set projects versions based on git tags and following semantic versioning
https://semver-gradle-plugin.javiersc.com
Other
25 stars 3 forks source link

pushSemverTag fails #19

Closed peterfigure closed 2 years ago

peterfigure commented 2 years ago
> Task :pushSemverTag FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':pushSemverTag'.
> Cannot call Task.dependsOn(Object...) on task ':pushSemverTag' after task has started execution.
JavierSegoviaCordoba commented 2 years ago

Fixed with https://github.com/JavierSegoviaCordoba/semver-gradle-plugin/commit/bd63e885f3c08c36f6340c5d42292b7010e6902d

pushSemverTag task creates and pushes the tag. It can be combined with semver Gradle properties to ensure the correct tag version is created and/or pushed.

pushSemverTag can use a specific remote if the Gradle property semver.remote is set. If it is not set, origin is used by the default, if it doesn't exist, the first remote by name is used. If there is no remote, the task fails.