Skip to content

Commit

Permalink
Merge pull request #180 from nebula-plugins/SemVerStrategy/enhance-er…
Browse files Browse the repository at this point in the history
…ror-messaging

SemVerStrategy: better eror messaging for 'Inferred version cannot be  lower than nearest'
  • Loading branch information
rpalcolea authored Feb 24, 2020
2 parents 83c336b + f76a2ec commit adebdb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ final class SemVerStrategy implements DefaultVersionStrategy {
logger.warn('Inferred project: {}, version: {}', project.name, versionAsString)

if (enforcePrecedence && version < nearestVersion.any) {
throw new GradleException("Inferred version (${version}) cannot be lower than nearest (${nearestVersion.any}). Required by selected strategy.")
throw new GradleException("Based on previous tags in this branch the nearest version is ${nearestVersion.any} You're attempting to release ${version} based on the tag recently pushed. Please look at https://github.com/nebula-plugins/nebula-release-plugin/wiki/Error-Messages-Explained#orggradleapigradleexception-inferred-version-cannot-be-lower-than-nearest-required-by-selected-strategy")
}


Expand Down

0 comments on commit adebdb5

Please sign in to comment.