Skip to content

Commit

Permalink
➕️ Spring 멀티모듈 구성 의존성 수정(#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
jun108059 committed Jun 4, 2022
1 parent 71aaf65 commit fa0e442
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 48 deletions.
69 changes: 48 additions & 21 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,30 +1,57 @@
plugins {
id 'org.springframework.boot' version '2.7.0'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
buildscript {
ext {
springBootVersion = '2.6.4'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath "io.spring.gradle:dependency-management-plugin:1.0.11.RELEASE"
}
}

group = 'hexagonal'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
allprojects {}

subprojects {
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'

configurations {
compileOnly {
extendsFrom annotationProcessor
group = 'hexagonal'
version = '1.0'
sourceCompatibility = '11'

repositories {
mavenCentral()
}
}

repositories {
mavenCentral()
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.24'
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"

dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

test {
useJUnitPlatform()
}
}

tasks.named('test') {
useJUnitPlatform()
project(':core') {
bootJar { enabled = false }
jar { enabled = true }

dependencies {
}
}

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

dependencies {
implementation project(':core')
}
}
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
rootProject.name = 'chat'
include 'core'
include 'api'
13 changes: 0 additions & 13 deletions src/main/java/hexagonal/chat/ChatApplication.java

This file was deleted.

1 change: 0 additions & 1 deletion src/main/resources/application.yml

This file was deleted.

13 changes: 0 additions & 13 deletions src/test/java/hexagonal/chat/ChatApplicationTests.java

This file was deleted.

0 comments on commit fa0e442

Please sign in to comment.