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

Add spring boot exploded mode #45

Open
jbonofre opened this issue May 14, 2022 · 0 comments
Open

Add spring boot exploded mode #45

jbonofre opened this issue May 14, 2022 · 0 comments
Assignees

Comments

@jbonofre
Copy link
Owner

Right now, K5 only supports repackaged spring boot application jar, wrapping all jar in uber jar. Then, K5 uses JarLauncher to launch the spring boot application.

However, this is not the running mode recommended by spring boot. K5 should support running spring boot application in exploded mode (similar to spring-boot:run maven goal).

It means that K5 needs:

  • to scan @SpringBootApplication annotation to find the Main class
  • to have a way (using spring boot app pom for instance) to find all dependencies to populate the classloader
  • don't use JarLauncher but create classloader and run instead

This preparation step should be performed at build time (CLI/maven/gradle plugin), not at build time.

@jbonofre jbonofre self-assigned this May 14, 2022
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

No branches or pull requests

1 participant