Upgrading gradle project to Spring boot 3.1.8 from 2.4.8 : When bootJar is disabled, gradle build command generated artifact name has -plain added to it in spring boot 3 #39523
Labels
status: invalid
An issue that we don't feel is valid
Uh oh!
There was an error while loading. Please reload this page.
Compare gradle packaging in springboot 3.1.8 and springboot 2.4.8, when bootJar is disabled
When the spring boot version is '2.4.8' -> The artifact generated is 'artifactname.jar'
When the spring boot version is '3.1.8' -> The artifact generated is 'artifactname-plain.jar'
Notice the '-plain' classifier in artifact name after the upgrade.
It seems when bootJar is disabled, the generated jar doesn't have -plain in the artifact name in spring boot 2.4.8.
But when I upgrade springboot to '3.1.8', the artifact name is changed.
I know we can solve this by adding classifier= '' under jar task. But this extra step was not needed in spring boot 2.4.8 version.
This needs to be documented. I couldn't find any documentation related to it, exactly which version has this change.
Here is the reproducer code for this : https://github.com/SabeetaBhandari/gradle-packaging-test
The text was updated successfully, but these errors were encountered: