From 490770dbda854b6a0b2eba17efa25cdfafd5bbd0 Mon Sep 17 00:00:00 2001 From: Arachneee Date: Thu, 8 Aug 2024 22:01:01 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20rest=20docs=20=EC=A0=80=EC=9E=A5=20?= =?UTF-8?q?=ED=8C=8C=EC=9D=BC=20=EC=9C=84=EC=B9=98=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/build.gradle | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/server/build.gradle b/server/build.gradle index deb550da4..4229de130 100644 --- a/server/build.gradle +++ b/server/build.gradle @@ -51,7 +51,7 @@ ext { snippetsDir = file('build/generated-snippets') } -tasks.named('test') { +test { useJUnitPlatform() outputs.dir snippetsDir } @@ -59,23 +59,28 @@ tasks.named('test') { 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 }