Skip to content

Commit 18f25b3

Browse files
committed
chore: Removed src directory in the root path
- removed src directory in the root path - added JpaEntityScanConfig to necessary projects - checked on the './gradlew clean build'
1 parent a4ae804 commit 18f25b3

File tree

8 files changed

+31
-181
lines changed

8 files changed

+31
-181
lines changed

build.gradle

Lines changed: 4 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -4,45 +4,11 @@ plugins {
44
id 'io.spring.dependency-management' version '1.1.7'
55
}
66

7+
bootJar.enabled = false
8+
79
group = 'com.f-lab.la_planete'
810
version = '0.0.1-SNAPSHOT'
911

10-
java {
11-
toolchain {
12-
languageVersion = JavaLanguageVersion.of(17)
13-
}
14-
}
15-
16-
configurations {
17-
compileOnly {
18-
extendsFrom annotationProcessor
19-
}
20-
}
21-
22-
repositories {
23-
mavenCentral()
24-
}
25-
26-
dependencies {
27-
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
28-
implementation 'org.springframework.boot:spring-boot-starter-web'
29-
compileOnly 'org.projectlombok:lombok'
30-
runtimeOnly 'com.h2database:h2'
31-
annotationProcessor 'org.projectlombok:lombok'
32-
testImplementation 'org.springframework.boot:spring-boot-starter-test'
33-
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
34-
35-
// swagger 패키지
36-
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0'
37-
38-
// lombok 테스트에서도 사용
39-
testCompileOnly 'org.projectlombok:lombok'
40-
testAnnotationProcessor 'org.projectlombok:lombok'
41-
42-
implementation project(":core")
43-
testImplementation project(":core")
44-
}
45-
4612
subprojects {
4713
apply plugin: 'java'
4814
apply plugin: 'org.springframework.boot'
@@ -80,10 +46,10 @@ subprojects {
8046
}
8147
}
8248

83-
8449
project(":notifications") {
8550
dependencies {
86-
compileOnly project(":core")
51+
implementation project(":core")
52+
testImplementation project(":core")
8753
}
8854
}
8955

@@ -108,8 +74,3 @@ project(":payment") {
10874
}
10975
}
11076

111-
112-
tasks.named('test') {
113-
useJUnitPlatform()
114-
}
115-
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.f_lab.la_planete.foods.config;
2+
3+
import org.springframework.boot.autoconfigure.domain.EntityScan;
4+
import org.springframework.context.annotation.Configuration;
5+
6+
@Configuration
7+
@EntityScan(basePackages = { "com.f_lab.la_planete.core" })
8+
public class JpaEntityScanConfig {
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.f_lab.la_planete.notifications.config;
2+
3+
import org.springframework.boot.autoconfigure.domain.EntityScan;
4+
import org.springframework.context.annotation.Configuration;
5+
6+
@Configuration
7+
@EntityScan(basePackages = { "com.f_lab.la_planete.core" })
8+
public class JpaEntityScanConfig {
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.f_lab.la_planete.orders.config;
2+
3+
import org.springframework.boot.autoconfigure.domain.EntityScan;
4+
import org.springframework.context.annotation.Configuration;
5+
6+
@Configuration
7+
@EntityScan(basePackages = { "com.f_lab.la_planete.core" })
8+
public class JpaEntityScanConfig {
9+
}

src/main/java/com/f_lab/la_planete/LaPlaneteApplication.java

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/main/resources/application.properties

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/test/java/com/f_lab/la_planete/LaPlaneteApplicationTests.java

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/test/java/com/f_lab/la_planete/aspect/LockRetryAspectTest.java

Lines changed: 0 additions & 107 deletions
This file was deleted.

0 commit comments

Comments
 (0)