Skip to content

Commit

Permalink
웹에서 시험 상세 내역을 인증 없이도 볼 수 있게 변경한다. (#26)
Browse files Browse the repository at this point in the history
* refactor: bootJar 이전에 copyDocument 실행으로 수정

* refactor: 시험 intro 까지는 인증이 필요없게 수정
  • Loading branch information
alstn113 committed Jan 14, 2025
1 parent abadb43 commit 7a8b2ca
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,27 +81,20 @@ dependencies {

test {
useJUnitPlatform()
delete snippetsDir // generated-snippets 디렉토리 삭제
outputs.dir snippetsDir
}

asciidoctor.doFirst {
delete file("src/main/resources/static/docs") // docs 디렉토리 삭제
}

asciidoctor {
inputs.dir snippetsDir
configurations 'asciidoctorExt'
dependsOn test

baseDirFollowsSourceFile()
}

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

build {
dependsOn copyDocument
from ("${asciidoctor.outputDir}") {
into 'static/docs'
}
}

0 comments on commit 7a8b2ca

Please sign in to comment.