diff --git a/build.gradle b/build.gradle index 1bd0e37..3b562a9 100644 --- a/build.gradle +++ b/build.gradle @@ -58,7 +58,6 @@ subprojects { } dependencies { - //implementation 'org.projectlombok:lombok' compileOnly 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok' annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor' diff --git a/daepiro-api/build.gradle b/daepiro-api/build.gradle index 8013ab3..c6dd7b5 100644 --- a/daepiro-api/build.gradle +++ b/daepiro-api/build.gradle @@ -3,6 +3,7 @@ dependencies { implementation project(':daepiro-common') implementation project(':daepiro-redis') + // spring implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-validation' @@ -13,37 +14,18 @@ dependencies { // jpa api 'org.springframework.boot:spring-boot-starter-data-jpa' + // lombok annotationProcessor 'org.projectlombok:lombok' - compileOnly 'org.projectlombok:lombok' - runtimeOnly 'com.h2database:h2' - runtimeOnly 'com.mysql:mysql-connector-j' - + // test testImplementation 'org.springframework.boot:spring-boot-starter-test' - testImplementation 'org.springframework.security:spring-security-test' - - implementation 'org.springframework.boot:spring-boot-starter-oauth2-client' - implementation 'org.springframework.boot:spring-boot-starter-data-redis' - - implementation 'io.jsonwebtoken:jjwt:0.9.1' - implementation 'com.sun.xml.bind:jaxb-impl:4.0.1' - implementation 'com.sun.xml.bind:jaxb-core:4.0.1' - implementation 'javax.xml.bind:jaxb-api:2.4.0-b180830.0359' - implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server' - - // cloud - implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE' // aop implementation 'org.springframework.boot:spring-boot-starter-aop' // fcm implementation 'com.google.firebase:firebase-admin:9.1.1' - - implementation 'com.squareup.okhttp3:okhttp:4.9.1' - implementation 'org.jsoup:jsoup:1.14.2' - implementation 'net.sourceforge.htmlunit:htmlunit:2.70.0' } tasks.named('test') { diff --git a/daepiro-app/build.gradle b/daepiro-app/build.gradle index a150b74..4288ad0 100644 --- a/daepiro-app/build.gradle +++ b/daepiro-app/build.gradle @@ -10,40 +10,17 @@ dependencies { implementation project(':daepiro-crawler') implementation project(':daepiro-auth') - implementation 'org.springframework.boot:spring-boot-starter-security' + // spring implementation 'org.springframework.boot:spring-boot-starter-web' - implementation 'org.springframework.boot:spring-boot-starter-validation' + implementation 'org.springframework.boot:spring-boot-starter-security' // swagger implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2' - // jpa - implementation 'org.springframework.boot:spring-boot-starter-data-jpa' - + // lombok annotationProcessor 'org.projectlombok:lombok' - compileOnly 'org.projectlombok:lombok' - runtimeOnly 'com.h2database:h2' - runtimeOnly 'com.mysql:mysql-connector-j' - - testImplementation 'org.springframework.boot:spring-boot-starter-test' - - implementation 'org.springframework.boot:spring-boot-starter-oauth2-client' - implementation 'org.springframework.boot:spring-boot-starter-data-redis' - - // cloud - implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE' - - // aop - implementation 'org.springframework.boot:spring-boot-starter-aop' - - // fcm - implementation 'com.google.firebase:firebase-admin:9.1.1' - - implementation 'com.squareup.okhttp3:okhttp:4.9.1' - implementation 'org.jsoup:jsoup:1.14.2' - implementation 'net.sourceforge.htmlunit:htmlunit:2.70.0' } tasks.named('test') { diff --git a/daepiro-auth/build.gradle b/daepiro-auth/build.gradle index e3d4155..ac02433 100644 --- a/daepiro-auth/build.gradle +++ b/daepiro-auth/build.gradle @@ -2,11 +2,13 @@ dependencies { implementation project(':daepiro-core') implementation project(':daepiro-redis') implementation project(':daepiro-common') - implementation project(':daepiro-api') + implementation project(':daepiro-api') // todo: remove it + // spring implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-validation' + // lombok compileOnly 'org.projectlombok:lombok' // swagger diff --git a/daepiro-common/build.gradle b/daepiro-common/build.gradle index 4cf3b4b..85f609f 100644 --- a/daepiro-common/build.gradle +++ b/daepiro-common/build.gradle @@ -5,13 +5,14 @@ plugins { } dependencies { + + // spring implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-validation' // swagger implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2' - implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE' // aop diff --git a/daepiro-core/build.gradle b/daepiro-core/build.gradle index af2ded6..7fb37ab 100644 --- a/daepiro-core/build.gradle +++ b/daepiro-core/build.gradle @@ -35,29 +35,15 @@ dependencies { // swagger implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2' - // redis - implementation 'org.springframework.boot:spring-boot-starter-data-redis' - // p6spy implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.5.8' // validation implementation 'org.springframework.boot:spring-boot-starter-validation' - // jwt - implementation 'io.jsonwebtoken:jjwt:0.9.1' - implementation 'com.sun.xml.bind:jaxb-impl:4.0.1' - implementation 'com.sun.xml.bind:jaxb-core:4.0.1' - implementation 'javax.xml.bind:jaxb-api:2.4.0-b180830.0359' - implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server' - - // jpa implementation 'org.springframework.boot:spring-boot-starter-data-jpa' - // web - implementation 'org.springframework.boot:spring-boot-starter-web' - // lombok compileOnly 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok' @@ -65,22 +51,19 @@ dependencies { // mysql connector runtimeOnly 'com.mysql:mysql-connector-j' - // test - testImplementation 'org.springframework.boot:spring-boot-starter-test' - - // === QueryDsl 시작 === + // === QueryDsl === implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta' annotationProcessor "com.querydsl:querydsl-apt:5.0.0:jakarta" annotationProcessor "jakarta.annotation:jakarta.annotation-api" annotationProcessor "jakarta.persistence:jakarta.persistence-api" - // === QueryDsl 끝 === + // === QueryDsl === } tasks.named('test') { useJUnitPlatform() } -// === Querydsl 빌드 옵션 (선택사항) === +// === Querydsl 빌드 옵션 === def querydslDir = "$buildDir/generated/querydsl" sourceSets { diff --git a/daepiro-crawler/build.gradle b/daepiro-crawler/build.gradle index 6f42a35..72bcdb0 100644 --- a/daepiro-crawler/build.gradle +++ b/daepiro-crawler/build.gradle @@ -13,7 +13,7 @@ dependencies { implementation 'org.springframework.boot:spring-boot-starter-validation' // jpa - implementation 'org.springframework.boot:spring-boot-starter-data-jpa' + api 'org.springframework.boot:spring-boot-starter-data-jpa' //crawling implementation 'com.squareup.okhttp3:okhttp:4.9.1' diff --git a/daepiro-redis/build.gradle b/daepiro-redis/build.gradle index 4ba0a3e..7d95f7a 100644 --- a/daepiro-redis/build.gradle +++ b/daepiro-redis/build.gradle @@ -7,10 +7,10 @@ plugins { dependencies { implementation project(':daepiro-common') + // redis implementation 'org.springframework.boot:spring-boot-starter-data-redis' - implementation 'com.fasterxml.jackson.core:jackson-databind' - + // test testFixturesRuntimeOnly group: 'it.ozimov', name: 'embedded-redis', version: '0.7.1' }