An example project to demonstrate how to use Gradle to build several artefacts with differend dependencies for one application.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
application
gradle/wrapper
lib-implA/src/main/java/com/karakun/sample
lib-implB/src/main/java/com/karakun/sample
lib-implC/src/main/java/com/karakun/sample
lib-interface
.gitignore
README.adoc
build.gradle
gradlew
gradlew.bat
settings.gradle

README.adoc

Flavoured Artefacts with Gradle

An example project to demonstrate how to use Gradle to build several artefacts with different dependencies for one application.

Explaining article

Please find the article that explains what this example project demonstrates at Karakun Developer Hub / Gradle: flavoured artefacts from a multi-module build

How to see it in action

  • checkout / clone

  • ./gradlew application:shadowJar

  • java -jar build/libs/application-customerC.jar

    s = Implementation or customer C
  • java -jar build/libs/application-customerB.jar

    s = Implementation or customer B
  • java -jar build/libs/application-customerA.jar

    s = Implementation or customer A