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)
- Host: GitHub
- URL: https://github.com/jaeyeonme/spring-boot-multi-module
- Owner: jaeyeonme
- License: gpl-3.0
- Created: 2023-06-29T04:37:19.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-06T08:03:12.000Z (almost 3 years ago)
- Last Synced: 2025-01-18T10:30:51.443Z (over 1 year ago)
- Topics: gradle, java, multi-module-project, spring-boot, template
- Language: Java
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 |
| |
+----------------+
```