Skip to content

Commit

Permalink
Merge pull request #5 from Workout-Study/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
12OneTwo12 authored Apr 19, 2024
2 parents 1332c65 + a3973cc commit 2f3c0f5
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 39 deletions.
68 changes: 34 additions & 34 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ val snippetsDir = file("./build/generated-snippets")
plugins {
id("org.springframework.boot") version "3.2.4"
id("io.spring.dependency-management") version "1.1.4"
id("org.asciidoctor.jvm.convert") version "3.3.2"
// id("org.asciidoctor.jvm.convert") version "3.3.2"
kotlin("jvm") version "1.9.23"
kotlin("plugin.spring") version "1.9.23"
kotlin("plugin.jpa") version "1.9.23"
Expand Down Expand Up @@ -44,7 +44,7 @@ dependencies {
annotationProcessor("org.projectlombok:lombok")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.batch:spring-batch-test")
testImplementation("org.springframework.restdocs:spring-restdocs-mockmvc")
// testImplementation("org.springframework.restdocs:spring-restdocs-mockmvc")
implementation("com.querydsl:querydsl-jpa:${property("queryDslVersion")}:jakarta")
kapt("com.querydsl:querydsl-apt:${property("queryDslVersion")}:jakarta")

Expand Down Expand Up @@ -73,35 +73,35 @@ tasks.withType<Test> {
useJUnitPlatform()
}

// Ascii Doc Create Tasks
tasks {
// Test 결과를 snippet Directory에 출력
test {
outputs.dir(snippetsDir)
}

asciidoctor {
// test 가 성공해야만, 아래 Task 실행
dependsOn(test)

// 기존에 존재하는 Docs 삭제(문서 최신화를 위해)
doFirst {
delete(file("src/main/resources/static/docs"))
}

inputs.dir(snippetsDir)

// Ascii Doc 파일 생성
doLast {
copy {
from("build/docs/asciidoc")
into("src/main/resources/static/docs")
}
}
}

build {
// Ascii Doc 파일 생성이 성공해야만, Build 진행
dependsOn(asciidoctor)
}
}
//// Ascii Doc Create Tasks
//tasks {
// // Test 결과를 snippet Directory에 출력
// test {
// outputs.dir(snippetsDir)
// }
//
// asciidoctor {
// // test 가 성공해야만, 아래 Task 실행
// dependsOn(test)
//
// // 기존에 존재하는 Docs 삭제(문서 최신화를 위해)
// doFirst {
// delete(file("src/main/resources/static/docs"))
// }
//
// inputs.dir(snippetsDir)
//
// // Ascii Doc 파일 생성
// doLast {
// copy {
// from("build/docs/asciidoc")
// into("src/main/resources/static/docs")
// }
// }
// }
//
// build {
// // Ascii Doc 파일 생성이 성공해야만, Build 진행
// dependsOn(asciidoctor)
// }
//}
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
package com.fitmate.batchservice

import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest

@SpringBootTest
class BatchServiceApplicationTests {

@Test
fun contextLoads() {
}

}

0 comments on commit 2f3c0f5

Please sign in to comment.