Skip to content

Commit

Permalink
[BE] chore: H2를 테스트에서만 사용하도록 설정 (#1010)
Browse files Browse the repository at this point in the history
* chore: H2 TestRuntimeOnly 설정, Swagger 의존성 삭제

* chore: 외부 의존성 버전 명시

* chore: 외부 의존성 버전 명시 제거
  • Loading branch information
donghoony authored Dec 18, 2024
1 parent 788dc65 commit 69b507a
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,30 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-cache'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.5.0'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'io.micrometer:micrometer-registry-prometheus'
implementation 'org.flywaydb:flyway-core'
implementation 'org.flywaydb:flyway-mysql'

runtimeOnly 'com.h2database:h2'
runtimeOnly 'com.mysql:mysql-connector-j'
annotationProcessor 'org.projectlombok:lombok'

// ConfigurationProperties
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'

// Test dependencies
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'com.h2database:h2'

// Lombok
annotationProcessor 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'

// RestDocs
asciidoctorExt 'org.springframework.restdocs:spring-restdocs-asciidoctor:3.0.1'
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc:3.0.1'
testImplementation 'io.rest-assured:spring-mock-mvc:5.4.0'
testImplementation 'io.rest-assured:rest-assured:5.4.0'
asciidoctorExt 'org.springframework.restdocs:spring-restdocs-asciidoctor'
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
testImplementation 'io.rest-assured:spring-mock-mvc'
testImplementation 'io.rest-assured:rest-assured'
}

ext {
Expand Down

0 comments on commit 69b507a

Please sign in to comment.