gradle-build-action/.github/workflow-samples/kotlin-dsl/build.gradle.kts

30 lines
642 B
Text
Raw Normal View History

plugins {
`java-library`
}
repositories {
mavenCentral()
}
dependencies {
api("org.apache.commons:commons-math3:3.6.1")
2023-11-08 23:44:59 -05:00
implementation("com.google.guava:guava:32.1.3-jre")
2023-11-08 23:44:59 -05:00
testImplementation("org.junit.jupiter:junit-jupiter:5.10.1")
}
tasks.test {
useJUnitPlatform()
}
tasks.named("test").configure {
// Write marker file so we can detect if task was configured
file("task-configured.txt").writeText("true")
doLast {
if (System.getProperties().containsKey("verifyCachedBuild")) {
throw RuntimeException("Build was not cached: unexpected execution of test task")
}
}
}