question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spring Boot Gradle plugin >= v2.5.0 outputs both executable fat jar and plain jar, and GAE Gradle plugin uses plain one.

See original GitHub issue

This is not a bug, but a feature request. Spring Boot Gradle plugin in the current version generates both executable fat jar and plain jar in the default settings like build/libs/aaa-0.0.1.jar build/libs/aaa-0.0.1-plain.jar , and when I run ./gradlew appengineShowConfiguration, it shows stage artifact is plain one.

My feature request is that GAE plugin will use fat one automatically without specifying artifact or disabling generating plain one.

environment: macOS10.15.7 openjdk version “11.0.12” 2021-07-20 LTS gradle 6.8.3 Spring Boot Gradle plugin 2.5.4 GAE Gradle plugin 2.4.2 GAE: flexible and custom runtime

reference: https://docs.spring.io/spring-boot/docs/2.5.1/gradle-plugin/reference/htmlsingle/#packaging-executable.and-plain-archives

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
zp-chen-hkmcicommented, Aug 8, 2022

more friendly one:

appengine {
    stage {
        artifact = bootJar.archiveFile.get()
    }
}
3reactions
chanseokohcommented, Sep 24, 2021

You can set appengine.stage.artifact to specify a deploy artifact:

appengine.stage.artifact = 'build/libs/demo-0.0.1-SNAPSHOT.jar'

I’m afraid this feature request is a very low priority for us. We accept contributions though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Boot Gradle Plugin Reference Guide
It allows you to package executable jar or war archives, run Spring Boot applications, and use the dependency management provided by spring-boot ......
Read more >
Spring Boot 2 Gradle plugin without executable jar
When the application plugin is configured, Spring Boot creates an additional distribution that contains the application packages as a fat jar ...
Read more >
Issues · GoogleCloudPlatform/app-gradle-plugin - GitHub
Spring Boot Gradle plugin >= v2.5.0 outputs both executable fat jar and plain jar, and GAE Gradle plugin uses plain one. enhancement p2...
Read more >
Creating a Fat Jar in Gradle | Baeldung
Basically, a fat jar (also known as uber-jar) is a self-sufficient archive which contains both classes and dependencies needed to run an ...
Read more >
Learning the Basics - Gradle User Manual
Popular public repositories include Maven Central and the Google Android repository. Gradle provides built-in shorthand notations for these widely-used ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found