Comments (5)
Works perfectly, thank you!
from dockerprepareplugin.
I'm thinking of adding a build.gradle setting that might look like this:
dockerprepare {
commonService 'spring-boot-starter-web'
}
spring-boot-starter-web has 21 transitive dependencies. During a build, all 21 resolved jar files would be copied into the first layer, giving us 3 layers:
L1: spring-boot-starter-web
L2: all other dependent jar files
L3: everything else, i.e. src/main/**
from dockerprepareplugin.
That would be an awesome feature.
If the commonService could be configured to be a project dependency that would essentially allow to tuck away in L1 layer many other 3rd parties (we have protobuf/gRPC, vavr, Guava, resilience4j and Ignite to name a few). Multi-project Gradle configuration would definitely benefit from that.
One could make the case that looking at inter-project dependencies, the dependency tree (just between the different projects) outlines the optimal reusable layer structure.
from dockerprepareplugin.
ok, This is implemented now. I changed the syntax a little to allow for multiple dependencies in the commonService layer:
dockerprepare{
commonService ['org.springframework.boot:spring-boot-starter-web','org.springframework.boot:spring-boot-starter-actuator']
}
from dockerprepareplugin.
fixed in this version:
plugins {
id "com.garyclayburg.dockerprepare" version "1.1.0"
}
from dockerprepareplugin.
Related Issues (10)
- jar file executable check fails when building with windows HOT 2
- Spring boot 2.5.x layer does not exist error HOT 1
- commonService labeled dependencies cannot be found if they are defined in a subproject HOT 1
- Spring boot M7 compatibility HOT 3
- Don't have access https://plugins.gradle.org/m2/ HOT 2
- Use plugin without SpringBoot HOT 1
- Error when using commonService with Spring Boot 2.4.2 HOT 2
- expandBootJar fails with gradle 7.0.2 HOT 1
- generatiion of layers for war file under spring boot 2.5 fails
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 dockerprepareplugin.