-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from team-nabi/NO-JIRA--refactor--migration
NO-JIRA--refactor : mono repo -> multi module migration
- Loading branch information
Showing
238 changed files
with
2,500 additions
and
1,979 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,108 +1,91 @@ | ||
plugins { | ||
id 'java' | ||
id 'org.springframework.boot' version '2.7.17' | ||
id 'io.spring.dependency-management' version '1.0.15.RELEASE' | ||
id "com.ewerk.gradle.plugins.querydsl" version "1.0.10" | ||
} | ||
|
||
// SNAPSHOT-plain 생성 막기위함 | ||
jar { | ||
enabled = false | ||
} | ||
|
||
group = 'org.prgrms' | ||
version = '0.0.1-SNAPSHOT' | ||
|
||
java { | ||
sourceCompatibility = '17' | ||
} | ||
|
||
configurations { | ||
compileOnly { | ||
extendsFrom annotationProcessor | ||
} | ||
id 'io.spring.dependency-management' version '1.1.3' | ||
id 'java-library' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation 'org.springframework.boot:spring-boot-starter-data-jpa' | ||
implementation 'org.springframework.boot:spring-boot-starter-validation' | ||
implementation 'org.springframework.boot:spring-boot-starter-web' | ||
implementation 'org.springframework.retry:spring-retry' | ||
implementation 'org.springframework:spring-aspects' | ||
implementation 'org.springdoc:springdoc-openapi-ui:1.6.15' | ||
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client' | ||
implementation 'org.springframework.boot:spring-boot-starter-security' | ||
implementation 'com.auth0:java-jwt:4.4.0' | ||
implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.8.0' | ||
|
||
compileOnly 'org.projectlombok:lombok' | ||
annotationProcessor 'org.projectlombok:lombok' | ||
|
||
testCompileOnly 'org.projectlombok:lombok' | ||
testCompileOnly 'com.mysql:mysql-connector-j' | ||
testAnnotationProcessor 'org.projectlombok:lombok' | ||
|
||
runtimeOnly 'com.mysql:mysql-connector-j' | ||
|
||
testImplementation 'org.springframework.security:spring-security-test' | ||
|
||
// querydsl 추가 | ||
implementation "com.querydsl:querydsl-jpa:5.0.0" | ||
implementation "com.querydsl:querydsl-apt:5.0.0" | ||
|
||
testImplementation 'org.springframework.boot:spring-boot-starter-test' | ||
// 각 모듈에 적용할 공통 설정 | ||
subprojects { | ||
group = 'org.prgrms' | ||
version = '0.0.1-SNAPSHOT' | ||
|
||
// Json을 결과로 매핑하기 위한 의존성 | ||
implementation 'com.google.code.gson:gson:2.8.8' | ||
apply plugin: 'java' | ||
apply plugin: 'org.springframework.boot' | ||
apply plugin: 'io.spring.dependency-management' | ||
apply plugin: 'java-library' | ||
|
||
implementation 'org.springframework.boot:spring-boot-starter-freemarker:2.5.4' | ||
java { | ||
sourceCompatibility = '17' | ||
} | ||
|
||
// 다국어 제공을 위한 i18n을 yml 파일로 적용하기 위한 의존성 | ||
implementation 'net.rakugakibox.util:yaml-resource-bundle:1.1' | ||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
// jwt 의존성 - JWT의 생성 및 유효성 검사와 관련된 기본적인 기능 | ||
implementation 'io.jsonwebtoken:jjwt:0.9.1' | ||
dependencies { | ||
compileOnly 'org.projectlombok:lombok' | ||
annotationProcessor 'org.projectlombok:lombok' | ||
testCompileOnly 'org.projectlombok:lombok' | ||
testAnnotationProcessor 'org.projectlombok:lombok' | ||
|
||
//Spring-Cloud-AWS | ||
implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE' | ||
// web | ||
implementation 'org.springframework.boot:spring-boot-starter-web' | ||
|
||
// redisson | ||
implementation "org.redisson:redisson-spring-boot-starter:3.21.1" | ||
// testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' | ||
// testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' | ||
} | ||
|
||
// redis | ||
implementation 'org.springframework.boot:spring-boot-starter-data-redis' | ||
// gradle 빌드시에는 각 프로젝트를 실행가능한 jar형태로 만들게 되는데, module-common 프로젝트의 경우 main메소드가 없음 | ||
// 단순히 참조용 클래스들만 있는 프로젝트를 위해 아래와 같은 설정(bootJar, jar)들을 추가함 | ||
bootJar { | ||
enabled = false | ||
} | ||
jar { | ||
enabled = true | ||
} | ||
|
||
// Google Firebase Control Message | ||
implementation 'com.google.firebase:firebase-admin:9.1.1' | ||
test { | ||
useJUnitPlatform() | ||
} | ||
} | ||
|
||
// Qtype 생성 경로 | ||
def querydslDir = "$buildDir/generated/querydsl" | ||
querydsl { | ||
jpa = true | ||
querydslSourcesDir = querydslDir | ||
} | ||
sourceSets { | ||
main.java.srcDir querydslDir | ||
// 하위 프로젝트간의 의존성을 관리 | ||
project(':nabimarket-api') { | ||
dependencies { | ||
implementation project(':nabimarket-common') | ||
implementation project(':nabimarket-application') | ||
implementation project(':nabimarket-infra') | ||
} | ||
} | ||
compileQuerydsl { | ||
options.annotationProcessorPath = configurations.querydsl | ||
|
||
project(':nabimarket-application') { | ||
dependencies { | ||
implementation project(':nabimarket-domain') | ||
implementation project(':nabimarket-common') | ||
implementation project(':nabimarket-infra') | ||
} | ||
} | ||
configurations { | ||
compileOnly { | ||
extendsFrom annotationProcessor | ||
|
||
project(':nabimarket-domain') { | ||
dependencies { | ||
implementation project(':nabimarket-common') | ||
} | ||
querydsl.extendsFrom compileClasspath | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
project(':nabimarket-infra') { | ||
dependencies { | ||
implementation project(':nabimarket-common') | ||
implementation project(':nabimarket-domain') | ||
} | ||
} | ||
|
||
tasks.named('test') { | ||
useJUnitPlatform() | ||
wrapper { | ||
gradleVersion = '8.3' | ||
distributionUrl = distributionUrl.replace("bin", "all") | ||
} | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* API | ||
*/ | ||
dependencies { | ||
// // retry | ||
// implementation 'org.springframework.retry:spring-retry' | ||
|
||
// swagger | ||
implementation 'org.springdoc:springdoc-openapi-ui:1.6.15' | ||
|
||
// security | ||
implementation 'org.springframework.boot:spring-boot-starter-security' | ||
} |
11 changes: 4 additions & 7 deletions
11
...nabimarketbe/NabiMarketBeApplication.java → ...nabimarketbe/NabiMarketBeApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.