This is a demo project. The goal was to set up one project that has a common code (library) shared between two (or more) projects.
Those projects (that share the same library) have some slight differences in the code, and have different dependencies.
The goal is to output 3 JAR files once the ./gradlew clean build
command is executed:
- One JAR for the library
- Another one for project1
- Another one for project2
- ...
Root project.
Common library used by other projects.
First project that uses the common-library
.
Second project that uses the common-library
.
From the repository root (in the root project) execute ./gradlew clean build
.
The JAR file will be in build/libs
folder of each project. The root project will have an empty build/libs
folder.