mirror of
https://github.com/gradle/actions.git
synced 2025-04-16 15:59:18 +08:00
32 lines
662 B
Plaintext
32 lines
662 B
Plaintext
plugins {
|
|
`java-library`
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
api("org.apache.commons:commons-math3:3.6.1")
|
|
implementation("com.google.guava:guava:33.4.5-jre")
|
|
}
|
|
|
|
testing {
|
|
suites {
|
|
val test by getting(JvmTestSuite::class) {
|
|
useJUnitJupiter()
|
|
}
|
|
}
|
|
}
|
|
|
|
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")
|
|
}
|
|
}
|
|
}
|