Skip to content
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

Usage of Spring boot Gradle configuration name #4304

Open
artemptushkin opened this issue Aug 30, 2024 · 0 comments
Open

Usage of Spring boot Gradle configuration name #4304

artemptushkin opened this issue Aug 30, 2024 · 0 comments

Comments

@artemptushkin
Copy link

artemptushkin commented Aug 30, 2024

Spring Boot Gradle plugin has a special configuration developmentOnly which affects only development classpath

Currently:

Spring defines a special Gradle configuration productionRuntimeClasspath, see this comment for example.

This misaligned use causes issues in the production classpath which is hard to catch locally:

  • locally we expect these dependencies to exist
  • Spring disables them in tests so tests won't catch them too

Hence, the only way to catch them is to deploy the application.

Example issues:

Proposal options:

  1. [Good option] Shall we, in case of Spring Boot apps, ("if spring boot") default it to productionRuntimeClasspath?
  2. [No the best option] Shall the extension switch the configuration to productionRuntimeClasspath?
@JoeWang1127 JoeWang1127 added priority: p2 type:open-question Open questions or discussion items labels Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants