Skip to content

Commit

Permalink
fix: rest docs 저장 파일 위치 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachneee committed Aug 8, 2024
1 parent f84c194 commit 490770d
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,31 +51,36 @@ ext {
snippetsDir = file('build/generated-snippets')
}

tasks.named('test') {
test {
useJUnitPlatform()
outputs.dir snippetsDir
}

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

tasks.resolveMainClassName {
dependsOn 'copyApiDocuments'
}

tasks.register('copyApiDocuments', Copy) {
doFirst {
delete file('src/main/resources/static/docs')
}
dependsOn asciidoctor
from file("build/docs/asciidoc")
into file("src/main/resources/static/docs")
into file("build/resources/main/static/docs")
}

bootJar {
dependsOn copyApiDocuments
}

jar {
enabled = false
}

build {
dependsOn copyApiDocuments
}

0 comments on commit 490770d

Please sign in to comment.