-
Notifications
You must be signed in to change notification settings - Fork 77
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
Add warning in strange case #89
base: master
Are you sure you want to change the base?
Conversation
The least we can do is compare two language: one of known 'pom' type and other of project artifact: if both equal, and jar plugin is "aware" it creates JAR that is "java" language, emit a warning.
This comment was marked as outdated.
This comment was marked as outdated.
.getArtifactHandler(getProject().getPackaging()) | ||
.getLanguage())) { | ||
getLog().warn( | ||
"The project packaging language is NOT 'java'; this is most probably not what you want"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think to add a packaging name ... like:
The project packaging <packaging> language ...
Groovy, Kotlin? |
Do Groovy or Kotlin use a custom packaging? |
I have no clue, was just hinting whether the restricition is complete. |
ok, m-jar-p is not the best place to check it ... the same will be with:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
The least we can do: check is "language" of current project packaging is "java" or not (all jar-like outputs are using language="java", only pom and bom packaging uses language="none"), and emit a WARN to user to reconsider.