Skip to content

Commit

Permalink
refactor: 루트 gradle 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
This2sho committed Apr 10, 2024
1 parent 65dbd3f commit a4700d0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 59 deletions.
87 changes: 29 additions & 58 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,83 +4,54 @@ plugins {
id 'io.spring.dependency-management' version '1.1.4'
}

group = 'com.example'
version = '0.0.1-SNAPSHOT'

java {
sourceCompatibility = '17'
}

configurations {
compileOnly {
extendsFrom annotationProcessor
}
}

repositories {
mavenCentral()
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation group: 'org.hibernate.orm', name: 'hibernate-spatial', version: '6.3.1.Final'


runtimeOnly 'com.h2database:h2'
runtimeOnly 'com.mysql:mysql-connector-j'

testImplementation 'org.springframework.boot:spring-boot-starter-test'

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2'

// 메일
implementation 'org.springframework.boot:spring-boot-starter-mail'

// redis
implementation("org.springframework.boot:spring-boot-starter-data-redis")

// testcontainer
testImplementation "org.testcontainers:testcontainers:1.19.6"
testImplementation "org.testcontainers:junit-jupiter:1.19.6"
testImplementation "com.redis:testcontainers-redis:2.2.0"
testImplementation "org.testcontainers:mysql:1.19.6"

// flyway 추가
implementation 'org.flywaydb:flyway-mysql'
implementation 'org.flywaydb:flyway-core'

// lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
}
bootJar.enabled = false

subprojects {
repositories {
mavenCentral()
}

group = 'com.parkingcomestrue'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'

apply plugin: 'java'

apply plugin: 'java-library'
apply plugin: 'org.springframework.boot'

apply plugin: 'io.spring.dependency-management'


configurations {
compileOnly {
extendsFrom annotationProcessor
}
}


dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'

runtimeOnly 'com.h2database:h2'
runtimeOnly 'com.mysql:mysql-connector-j'

implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

test {
useJUnitPlatform()
}
}

project(':domain') {
bootJar { enabled = false }
jar { enabled = true }
}

tasks.named('test') {
useJUnitPlatform()
project(':app-api') {
bootJar { enabled = true }
}

project(':app-scheduler') {
bootJar { enabled = true }
}


3 changes: 2 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
rootProject.name = 'parking'
include 'domain'

include 'app-api'
include 'app-scheduler'

0 comments on commit a4700d0

Please sign in to comment.