Skip to content

Spring Boot + Gradle Multi Module + Java 17 (template)

License

Notifications You must be signed in to change notification settings

jaeyeonme/spring-boot-multi-module

Repository files navigation

Project Structure

Multi Modules Single Project

root (com.example)
├── build.gradle
└── settings.gradle
└── module-api
│   ├── build.gradle
│   └── src
│       └── main
│           └── java
│               └── com
│                   └── example
│                       └── moduleapi
│                           └── ApiApplication.java (Spring Boot Application)
└── module-common
│   ├── build.gradle
│   └── src
│       └── main
│           └── java
│               └── com
│                   └── example
│                       └── modulecommon
└── module-domain
    ├── build.gradle
    └── src
        └── main
            └── java
                └── com
                    └── example
                        └── moduledomain

Build the Project

./gradlew :module-api:build

Modules

  • module-api: This moudle is reponsible for the API Server.
  • module-domain: This module is responsible for the domain logic
  • module-common: This moudle is responsible for common utilities and libraries.

Dependency Flow

+----------------+
|  module-api    |
|                |
+----------------+
        ^
        |
+-------------------+
|  module-domain   |
|                  |
+-------------------+
        ^
        |
+----------------+
| module-common  |
|                |
+----------------+

About

Spring Boot + Gradle Multi Module + Java 17 (template)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages