mirror of https://github.com/usbharu/Hideout.git
chore: build logging
This commit is contained in:
parent
0efd92a371
commit
2d5f547f13
|
@ -1,3 +1,5 @@
|
||||||
|
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
|
||||||
|
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
||||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
import org.openapitools.generator.gradle.plugin.tasks.GenerateTask
|
import org.openapitools.generator.gradle.plugin.tasks.GenerateTask
|
||||||
import kotlin.math.max
|
import kotlin.math.max
|
||||||
|
@ -68,6 +70,21 @@ tasks.withType<Test> {
|
||||||
"--add-opens", "java.base/java.lang=ALL-UNNAMED"
|
"--add-opens", "java.base/java.lang=ALL-UNNAMED"
|
||||||
).toMutableList()
|
).toMutableList()
|
||||||
}
|
}
|
||||||
|
testLogging {
|
||||||
|
events(
|
||||||
|
TestLogEvent.FAILED,
|
||||||
|
TestLogEvent.SKIPPED,
|
||||||
|
TestLogEvent.PASSED,
|
||||||
|
TestLogEvent.STANDARD_OUT,
|
||||||
|
TestLogEvent.STANDARD_ERROR,
|
||||||
|
TestLogEvent.STARTED
|
||||||
|
)
|
||||||
|
exceptionFormat = TestExceptionFormat.FULL
|
||||||
|
showCauses = true
|
||||||
|
showExceptions = true
|
||||||
|
showStackTraces = true
|
||||||
|
setShowStandardStreams(true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask<*>>().configureEach {
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask<*>>().configureEach {
|
||||||
|
|
Loading…
Reference in New Issue