diff --git a/build.gradle b/build.gradle index c8e99b20..8fe34251 100644 --- a/build.gradle +++ b/build.gradle @@ -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 } +} + + diff --git a/settings.gradle b/settings.gradle index 1cfafbbc..28f6a7d6 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,3 +1,4 @@ rootProject.name = 'parking' include 'domain' - +include 'app-api' +include 'app-scheduler'