Comments (3)
For 2., how do you propose to distinguish between the bootJar
task that's created automatically when you apply the Boot plugin and a bootJar
task that's been explicitly configured by the user? Do you mean a BootJar
task that's named something other than bootJar
?
3 seems like a rather weird setup. Why is the Boot plugin being applied at all? If you're using the Shadow plugin I'd expect the Shadow plugin to be applied and, ideally, for Boot's dependency management to be used. I wouldn't expect Boot's own plugin to be applied though.
from spring-boot-thin-launcher.
The shadow sample is in slightly better shape now. It actually builds 2 jars the right size and shape, but
only one of them is executable.
how do you propose to distinguish
I don't know. Do we need to distinguish? If the user configures a task called bootJar
and isn't using the Boot plugin then that's a bit unexpected. Is that what you mean?
I think BootJar
tasks called something other than bootJar
was actually a feature we discussed once before, and isn't it actually supported in Boot 1.5 with the thin plugin, but with different names for everything?
seems like a rather weird setup.
It isn't weird for the AWS sample mentioned above, for example. You have a Boot thin jar that can be used in a variety of scenarios (even as a library), and a shaded ueber jar that can be launched by AWS.
from spring-boot-thin-launcher.
I don't know. Do we need to distinguish?
Scenarios 1 and 2 suggested to me that distinguishing is necessary. One results in the thick jar being omitted while the other is both a thick jar and a thin jar. I was curious about the trigger for the different behaviours.
You have a Boot thin jar that can be used in a variety of scenarios (even as a library), and a shaded ueber jar that can be launched by AWS.
It's not that bit that I find a bit weird. It's using both Boot's plugin and the Shadow plugin to get there. I guess it's a side-effect of trying to support Boot 1.x and Boot 2.x with (largely) the same code, but it would be more Gradle-like if the thin plugin provided a custom jar task that built a thin jar without any reliance on Boot's normal Gradle plugin, particularly given that Boot's Gradle plugin doesn't support the custom layout stuff in 2.0 so it can't be adding much anyway.
from spring-boot-thin-launcher.
Related Issues (20)
- Remote repository credentials not used HOT 4
- Gradle thinProperties task failing on Gradle 7.3 HOT 1
- spring-boot-maven-plugin:2.6.0 causing errors with version 1.0.27.RELEASE HOT 1
- multi module sample run failed
- How to use this when my application libraries directory is not maven repository format
- Can not download full file when using -Dthin.repo="http://maven.aliyun.com/nexus/content/groups/public/" HOT 2
- sample need update. HOT 2
- Default Repository currently not working. Change default thin.repo to maven central, if this isn't just temporary? HOT 1
- Gradle build failing with gradle-8.1, same is wrking with 7.6.1 HOT 4
- config in subprojects with error Cannot run Project.afterEvaluate(Action) when the project is already evaluated. HOT 2
- Spring boot thin launcher jar not found HOT 2
- Cannot locate launcher: /root/.m2/repository/.../spring-boot-thin-launcher-1.0.27.RELEASE-exec.jar HOT 1
- Write a thin jar into a shell script, then run it failed! HOT 5
- spring-boot-thin-maven-plugin doesn't work with my maven nexus setup HOT 1
- I use a custom dependency package through maven and use a relative path. Thin-launcher reports an error and tells me must specify an absolute path. Is there any solution? HOT 1
- The option thin.libs puts jars at the end of the classpath instead of the front HOT 1
- When the META-INF/thin.properties file is present, authenticated/internal maven repositories do not work. HOT 1
- Project does not build HOT 2
- Location of settings.xml is inconsistent with docs
- IllegalArgumentException: Bad artifact coordinates true, expected format is <groupId>:<artifactId>[:<extension>[:<classifier>]][:<version>]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-boot-thin-launcher.