#38 hexagonal: membership service 모듈 생성

This commit is contained in:
haerong22
2023-07-03 20:21:36 +09:00
parent 3fbb9f458d
commit 8cef5e30b7
4 changed files with 57 additions and 5 deletions

View 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()
}

View File

@@ -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);
}
}

View File

@@ -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() {

View File

@@ -1,2 +1,3 @@
rootProject.name = 'bobby-pay'
include 'membership-service'