Skip to content

Commit

Permalink
Fix: 정적 콘텐츠 설정 오류: build.gradle 파일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
5jisoo committed Jan 20, 2024
1 parent bad0cd7 commit 6a24d44
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
30 changes: 20 additions & 10 deletions pochak/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ java {
}

configurations {
asciidoctorExt
compileOnly {
extendsFrom annotationProcessor
}
asciidoctorExt
}

repositories {
Expand Down Expand Up @@ -66,20 +66,30 @@ test {

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

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

bootJar {
dependsOn asciidoctor
copy {
from "${asciidoctor.outputDir}"
into 'BOOT-INF/classes/static/docs'
}
}

tasks.register('copyApiDocument') {
dependsOn asciidoctor
doFirst {
delete file("src/main/resources/static/docs")
copy {
from "${asciidoctor.outputDir}"
into 'BOOT-INF/classes/static/docs'
}
doLast {
copy {
from "${asciidoctor.outputDir}"
println "확인하기 ${asciidoctor.outputDir}"
into 'build/resources/main/static/docs'
}
copy {
from file("build/docs/asciidoc")
into file("src/main/resources/static/docs")
}
}

Expand Down
2 changes: 1 addition & 1 deletion pochak/src/main/resources/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<title>POCHAK</title>
</head>
<body>
<h1>hi POCHAK! 📸</h1>
<h1>hi POCHAK Develop Server! 📸</h1>
</body>
</html>

0 comments on commit 6a24d44

Please sign in to comment.