-
Notifications
You must be signed in to change notification settings - Fork 129
NEBULA-3609 document the code paths for spring boot 1 and 3 better #470
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
Conversation
Add more test cases to cover spring boot 2 and multiple gradle versions Add toolchain configuration to ensure consistent jdk version usage for compile/testing improve the reaction to spring boot plugin to move closer to gradle best practices
|
|
||
| java { | ||
| toolchain { | ||
| languageVersion = JavaLanguageVersion.of(17) |
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.
compile on 17, instead of daemon version (21)
| } else { | ||
| archiveClassifier = 'boot' | ||
| } | ||
| project.plugins.withId("org.springframework.boot") { |
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.
withId allows the plugins to be listed in any order, and this block will always execute after the spring boot plugin is applied
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.
most of the rest of this diff is just from the extra indentation... it looks like much more than it actually is
| createStartScripts.mainClassName = 'org.springframework.boot.loader.JarLauncher' | ||
| } | ||
| } else { | ||
| project.logger.info("Spring Boot 1 detected") |
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.
👍 helpful logging indeed, especially for this much older and thus unexpected version
| def mainClass = project.objects.property(String) | ||
| try { | ||
| mainClass.set(project.application.mainClass.isPresent() ? project.application.mainClass.get() : project.application.mainClassName) | ||
| mainClass.set(project.springBoot.mainClass) |
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.
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 diff is deceiving here. this code has not changed
OdysseusLives
left a comment
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.
LGTM!
Add more test cases to cover spring boot 2 and multiple gradle versions Add toolchain configuration to ensure consistent jdk version usage for compile/testing improve the reaction to spring boot plugin to move closer to gradle best practices