#38 hexagonal: membership service 모듈 생성
This commit is contained in:
51
bobby-pay/membership-service/build.gradle
Normal file
51
bobby-pay/membership-service/build.gradle
Normal file
@@ -0,0 +1,51 @@
|
||||
buildscript {
|
||||
dependencies {
|
||||
classpath "io.spring.gradle:dependency-management-plugin:0.5.1.RELEASE"
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'org.springframework.boot' version '2.5.2'
|
||||
id 'java'
|
||||
}
|
||||
|
||||
compileJava {
|
||||
sourceCompatibility = 11
|
||||
targetCompatibility = 11
|
||||
}
|
||||
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'java-library'
|
||||
apply plugin: 'org.springframework.boot'
|
||||
apply plugin: 'io.spring.dependency-management'
|
||||
|
||||
group 'org.example.membership'
|
||||
version '1.0-SNAPSHOT'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly 'org.projectlombok:lombok'
|
||||
annotationProcessor 'org.projectlombok:lombok'
|
||||
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
|
||||
|
||||
implementation 'io.springfox:springfox-swagger-ui:2.9.2'
|
||||
implementation 'io.springfox:springfox-swagger2:2.9.2'
|
||||
|
||||
testImplementation 'com.tngtech.archunit:archunit:1.0.1'
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||
|
||||
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-web'
|
||||
implementation 'javax.persistence:javax.persistence-api:2.2'
|
||||
// implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
||||
implementation 'org.jetbrains:annotations:23.0.0'
|
||||
testImplementation 'junit:junit:4.13.1'
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
@@ -1,12 +1,12 @@
|
||||
package org.example;
|
||||
package org.example.membership;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class TestApplication {
|
||||
public class MembershipApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(TestApplication.class, args);
|
||||
SpringApplication.run(MembershipApplication.class, args);
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
package org.example;
|
||||
package org.example.membership.adapter.in.web;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
public class TestController {
|
||||
public class RegisterMembershipController {
|
||||
|
||||
@GetMapping("/test")
|
||||
public void test() {
|
||||
@@ -1,2 +1,3 @@
|
||||
rootProject.name = 'bobby-pay'
|
||||
include 'membership-service'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user