Skip to content

Commit

Permalink
Fix: exclude ignore folder for build success
Browse files Browse the repository at this point in the history
  • Loading branch information
emost22 committed Jun 8, 2024
1 parent 49685a6 commit e6eecdf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ task jsonDoclet(type: Javadoc, dependsOn: compileTestJava) {

spotless {
java {
// generated 폴더는 제외
target project.fileTree(project.rootDir) {
include '**/*.java'
exclude '**/generated/**/*.*'
}

// 사용하지 않는 import 제거
removeUnusedImports()
// 구글 자바 포맷 적용
Expand All @@ -91,7 +97,8 @@ spotless {
}

// 의존성을 설정해줌 test 끝나고 spotlessjava 수행되도록
tasks.named("spotlessJava").configure { dependsOn("compileTestJava") }
// tasks.named("spotlessJava").configure { dependsOn("compileTestJava") }
tasks.named("spotlessJava").configure {dependsOn("asciidoctor")}

// 테스트 실행 후, snipperDir에 snippet(.adoc 파일들) 생성
test {
Expand Down

0 comments on commit e6eecdf

Please sign in to comment.