jib icon indicating copy to clipboard operation
jib copied to clipboard

Usage of Spring boot Gradle configuration name

Open artemptushkin opened this issue 1 year ago • 2 comments

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?

artemptushkin avatar Aug 30 '24 09:08 artemptushkin

@artemptushkin can I work on this?

manojks1999 avatar Jan 14 '25 09:01 manojks1999

@manojks1999 Thank you for your interest, fine with me, I'm not a maintainer but I can review as I know the project a bit

artemptushkin avatar Jan 14 '25 09:01 artemptushkin