nebula-release-plugin icon indicating copy to clipboard operation
nebula-release-plugin copied to clipboard

Hyphen sandwiched by underscores in branch name results in "An exception occurred applying plugin request [id: 'java']"

Open shuba-chwy opened this issue 1 year ago • 0 comments

id 'nebula.release' version '15.0.0'

Error message does say

An exception occurred applying plugin request [id: 'java']
  > Failed to apply plugin 'org.gradle.java'.
   > Could not create domain object 'test' (JvmTestSuite)
...
 Exception is:
org.gradle.api.plugins.InvalidPluginException: An exception occurred applying plugin request [id: 'java']
...
Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin 'org.gradle.java'.
...
Caused by: java.lang.IllegalStateException: Could not create domain object 'test' (JvmTestSuite)
...
Caused by: Identifiers MUST NOT be empty (Unexpected character 'DOT(.)' at position '105', expecting '[DIGIT, LETTER, HYPHEN]')

but this message doesn't give you an idea that this issue is related to a branch name

Good branch name: feature/BLABLA-1000_This_branch-will_work Bad branch name: feature/BLABLA-1000_This_branch_-_will_fail

Please, update error message to point that issue is in branch name or let it support _-_ in branch name

shuba-chwy avatar Mar 22 '23 14:03 shuba-chwy