Skip to content

Commit

Permalink
Merge pull request #220 from TripInfoWeb/feature/restdocs_setting
Browse files Browse the repository at this point in the history
fix: 중복 코드 삭제
  • Loading branch information
hyeonjaez authored Oct 3, 2024
2 parents efaa35c + 91d2bc1 commit 3b00e0c
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repositories {
}

ext {
set('snippetsDir', file("build/generated-snippets"))
set('snippetsDir', file("src/dos")) // 변경된 경로
}

dependencies {
Expand All @@ -35,7 +35,6 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-validation'


implementation 'io.jsonwebtoken:jjwt-api:0.12.6'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.6'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.6'
Expand All @@ -49,7 +48,6 @@ dependencies {
annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.5.Final'

implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta'
// queryDsl 라이브러리
annotationProcessor "com.querydsl:querydsl-apt:5.0.0:jakarta"
annotationProcessor "jakarta.annotation:jakarta.annotation-api"
annotationProcessor "jakarta.persistence:jakarta.persistence-api"
Expand All @@ -69,31 +67,25 @@ tasks.named('test') {

tasks.named('asciidoctor') {
inputs.dir snippetsDir
dependsOn test
}

ext {
set('snippetsDir', file("src/docs"))
// dependsOn test 를 제거하여 순환 종속성을 피합니다.
}

asciidoctor {
configurations 'asciidoctorExt'
baseDirFollowsSourceFile()
inputs.dir snippetsDir
dependsOn test
}

asciidoctor.doFirst {
delete file('src/main/resources/docs')
}

task copyDocument(type: Copy) {
dependsOn asciidoctor
from file("build/docs/asciidoc")
into file("src/main/resources/docs")
}


// build 작업에 copyDocument를 추가합니다.
build {
dependsOn copyDocument
}

0 comments on commit 3b00e0c

Please sign in to comment.