Skip to content

Commit f85c23e

Browse files
committed
chore: 그레이들 충돌 해결
1 parent 5b07a57 commit f85c23e

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

build.gradle

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,20 @@ tasks.named('test', Test) {
8888
finalizedBy tasks.jacocoTestReport
8989
}
9090

91+
tasks.named('jacocoTestReport', JacocoReport) {
92+
dependsOn test
93+
reports {
94+
xml.required.set(true)
95+
html.required.set(true)
96+
}
97+
sourceDirectories.setFrom(files(sourceSets.main.allSource.srcDirs))
98+
classDirectories.setFrom(files(sourceSets.main.output))
99+
100+
executionData.setFrom(
101+
layout.buildDirectory.file("jacoco/test.exec").map { it.asFile }
102+
)
103+
}
104+
91105
generateSwaggerUI {
92106
dependsOn("openapi3")
93107

@@ -102,29 +116,14 @@ generateSwaggerUI {
102116

103117
openapi3 {
104118
servers = [ // 서버 상황에 맞춰 추가 예정
105-
{
106-
url = "http://localhost:8080"
107-
description = "Local Server"
108-
}
119+
{
120+
url = "http://localhost:8080"
121+
description = "Local Server"
122+
}
109123
]
110124
title = "백암 순대 API" // 수정 예정
111125
description = "백암 순대 API" // 수정 예정
112126
version = "0.0.1"
113127
format = "yaml"
114128
outputDirectory = "build/resources/main/static/docs"
115129
}
116-
117-
tasks.named('jacocoTestReport', JacocoReport) {
118-
dependsOn test
119-
reports {
120-
xml.required.set(true)
121-
html.required.set(true)
122-
}
123-
sourceDirectories.setFrom(files(sourceSets.main.allSource.srcDirs))
124-
classDirectories.setFrom(files(sourceSets.main.output))
125-
126-
executionData.setFrom(
127-
layout.buildDirectory.file("jacoco/test.exec").map { it.asFile }
128-
)
129-
}
130-

0 commit comments

Comments
 (0)