Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commit

Permalink
[#1]프로젝트 생성
Browse files Browse the repository at this point in the history
-의존성 추가
-h2 DB 초기 설정
  • Loading branch information
Hosick committed Jan 5, 2021
1 parent 1d5ef34 commit efb9594
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 0 deletions.
48 changes: 48 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
plugins {
id 'org.springframework.boot' version '2.4.1'
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
id 'org.asciidoctor.convert' version '1.5.8'
id 'java'
}

group = 'com.flab.soft'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'

configurations {
compileOnly {
extendsFrom annotationProcessor
}
}

repositories {
mavenCentral()
}

ext {
set('snippetsDir', file("build/generated-snippets"))
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.h2database:h2'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'

// springboot 2.3 버전부터 Valid 가 Web-starter 에서 제외됨으로 추가
implementation 'org.springframework.boot:spring-boot-starter-validation'
}

test {
outputs.dir snippetsDir
useJUnitPlatform()
}

asciidoctor {
inputs.dir snippetsDir
dependsOn test
}
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = 'shoeauction'
12 changes: 12 additions & 0 deletions src/main/java/com/flab/soft/shoeauction/Application.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.flab.soft.shoeauction;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Application {

public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
6 changes: 6 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
spring:
datasource:
url: jdbc:h2:tcp://localhost/~/shoeactions
username: sa
password:
driver-class-name: org.h2.Driver
13 changes: 13 additions & 0 deletions src/test/java/com/flab/soft/shoeauction/ApplicationTests.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.flab.soft.shoeauction;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
class ApplicationTests {

@Test
void contextLoads() {
}

}

0 comments on commit efb9594

Please sign in to comment.