You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #2178, we overrode the archiveClassifier (classifier is deprecated) of the jar task, because by default both the jar and bootJar tasks write their respective JAR to the same location (build/<name>.jar). However, if bootJar is configured to write its fat JAR to a different location, there's no need to rename the original JAR generated by the jar task.
Looks like it's not easy to clone the jar task that guarantees to create the exact same jar file as the jar task will produce.
That said, I have refined the logic to be more conservative like this:
If both bootJar and jar are enabled and their jar locations conflict, throw an error. This is really like a misconfiguration that the user needs to address.
Set the classifier of jar to original only when all the followings are true.
In #2178, we overrode the
archiveClassifier
(classifier
is deprecated) of thejar
task, because by default both thejar
andbootJar
tasks write their respective JAR to the same location (build/<name>.jar
). However, ifbootJar
is configured to write its fat JAR to a different location, there's no need to rename the original JAR generated by thejar
task.@ewirch
The text was updated successfully, but these errors were encountered: