Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shuba-chwy opened this issue Mar 22, 2023 · 0 comments

Comments

@shuba-chwy
Copy link

shuba-chwy commented Mar 22, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant