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

Spring boot: plain jar or boot jar ? #119

Closed
gotson opened this issue Jan 25, 2022 · 2 comments
Closed

Spring boot: plain jar or boot jar ? #119

gotson opened this issue Jan 25, 2022 · 2 comments

Comments

@gotson
Copy link

gotson commented Jan 25, 2022

Hi,

i am trying to make the plugin work with a Spring Boot fat jar.

I configure the plugin like this:

runtime {
  distDir.set(tasks.bootJar.get().destinationDirectory.get())
  options.set(listOf("--strip-debug", "--compress", "2", "--no-header-files", "--no-man-pages"))
}

Note that i also have this, as suggested in the Spring Boot 2.5 documentation:

tasks.getByName<Jar>("jar") {
    enabled = false
  }

I get the following error:

Execution failed for task ':komga:jre'.
> File or directory not found: /.../komga/komga/build/libs/komga-0.146.0-plain.jar

It seems it's expecting the artifact from the jar task, while i would like to specify the output of the bootJar task. However, I can only configure the distDir, but it would make more sense to configure the distFile instead, no?

@gotson
Copy link
Author

gotson commented Jan 25, 2022

Probably similar to #107

@Redhab
Copy link

Redhab commented Dec 7, 2022

similar issue.
Any update?

@gotson gotson closed this as not planned Won't fix, can't repro, duplicate, stale Jan 17, 2024
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

2 participants