Skip to content

Conversation

@wakingrufus
Copy link
Member

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

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
@wakingrufus wakingrufus marked this pull request as ready for review July 30, 2025 18:24

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
Copy link
Member Author

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") {
Copy link
Member Author

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

Copy link
Member Author

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")
Copy link
Member

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

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

Copy link
Member

@OdysseusLives OdysseusLives left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@wakingrufus wakingrufus merged commit 73f4ef2 into main Aug 1, 2025
10 checks passed
@wakingrufus wakingrufus deleted the NEBULA-3609 branch August 1, 2025 14:04
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

Successfully merging this pull request may close these issues.

3 participants