ddubson / springboot-multiproject-gradle-example

Spring Boot multi-project Gradle build example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spring Boot Multi-Project Gradle

This is an example project seeking to illustrate how you can create robust multi-project environments using Gradle

Multi-project builds

settings.gradle contains a list of all the sub projects

build.gradle

allprojects block applies to all sub projects

each project is included via project(":[project-name]")

you can include subprojects in a project via dependencies like so:

project(":boot-api") {
    dependencies {
        compile project(":boot-logger")
        // other dependencies
    }
}

Running the application

In the project root directory, run:

./gradlew :boot-api:bootRun

About

Spring Boot multi-project Gradle build example

License:MIT License


Languages

Language:Java 100.0%