An open API service indexing awesome lists of open source software.

https://github.com/jaeyeonme/spring-boot-multi-module

Spring Boot + Gradle Multi Module + Java 17 (template)
https://github.com/jaeyeonme/spring-boot-multi-module

gradle java multi-module-project spring-boot template

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

          

## 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
```bash
./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
```lua
+----------------+
| module-api |
| |
+----------------+
^
|
+-------------------+
| module-domain |
| |
+-------------------+
^
|
+----------------+
| module-common |
| |
+----------------+
```