Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions api/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependencies {
api project(':application')
}
9 changes: 9 additions & 0 deletions api/src/main/java/TestController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

@RestController
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviews test

@RequiredArgsConstructor
public class TestController {

private final TestService testService;
}
4 changes: 4 additions & 0 deletions application/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dependencies {
api project(':domain')
api project(':infrastructure')
}
7 changes: 7 additions & 0 deletions application/src/main/java/TestService.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import org.springframework.stereotype.Service;

@Service
public class TestService {

}

27 changes: 23 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,35 @@ repositories {
mavenCentral()
}



dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'mysql:mysql-connector-java'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}


subprojects{
apply plugin: 'java'
apply plugin : 'java-library'

repositories {
mavenCentral()
}

dependencies {
implementation 'org.springframework.boot:spring-boot-autoconfigure:2.6.6'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
compileOnly 'org.projectlombok:lombok:1.18.22'

}
}


tasks.named('test') {
useJUnitPlatform()
}
3 changes: 3 additions & 0 deletions domain/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
}
3 changes: 3 additions & 0 deletions infrastructure/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependencies {
runtimeOnly 'mysql:mysql-connector-java'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

infra에서는 application과 domain 의존하게 하면 됩니다.

}
4 changes: 4 additions & 0 deletions server/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web:2.6.6'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.haklind;
package haklind;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
Expand Down
6 changes: 6 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
rootProject.name = 'haklind'
include 'api'
include 'application'
include 'domain'
include 'infrastructure'
include 'server'

13 changes: 0 additions & 13 deletions src/test/java/com/example/haklind/HaklindApplicationTests.java

This file was deleted.