Giter Club home page Giter Club logo

Comments (5)

liqweed avatar liqweed commented on September 27, 2024 1

Works perfectly, thank you!

from dockerprepareplugin.

gclayburg avatar gclayburg commented on September 27, 2024

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.

liqweed avatar liqweed commented on September 27, 2024

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.

gclayburg avatar gclayburg commented on September 27, 2024

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.

gclayburg avatar gclayburg commented on September 27, 2024

fixed in this version:

plugins {
id "com.garyclayburg.dockerprepare" version "1.1.0"
}

from dockerprepareplugin.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.