ozancaglar / gradle-multi-project-monorepo

Example project to use Gradle multi-project build in monorepo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gradle-multi-project-monorepo

This is an example project to use Gradle multi-project build in monorepo. It uses GitHub Actions's on.push.paths to build only changed sub-project of the project.

Description

In this example, there are four subprojects:

They have the following dependency:

Both apps/account-app and apps/inventory-app depend on libs/profile and only apps/account-app depends on libs/greeter

By using on.push.paths, only changed apps can be built as follows:

  • When a file under the apps/account-app is changed, only the account-app will be built. Only the account-app is built
  • When a file under the libs/profile is changed, both the account-app and the inventory-app will be built. both the account-app and the inventory-app will be built

About

Example project to use Gradle multi-project build in monorepo


Languages

Language:Kotlin 100.0%