44c9bd050f
Issue gh-94
31 lines
703 B
Groovy
31 lines
703 B
Groovy
plugins {
|
|
id "checkstyle"
|
|
id "io.spring.javaformat" version "0.0.25"
|
|
id 'io.spring.nohttp' version '0.0.5.RELEASE'
|
|
}
|
|
|
|
allprojects {
|
|
apply plugin: 'checkstyle'
|
|
apply plugin: 'io.spring.javaformat'
|
|
|
|
dependencies {
|
|
checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:0.0.25"
|
|
}
|
|
|
|
// Ensure every test task has at least a single test
|
|
tasks.withType(Test).configureEach {
|
|
afterSuite { desc, result ->
|
|
if (result.testCount == 0) {
|
|
throw new IllegalStateException("No tests were found. Ensure that useJUnitPlatform was used.")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
if (hasProperty('buildScan')) {
|
|
buildScan {
|
|
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
|
|
termsOfServiceAgree = 'yes'
|
|
}
|
|
}
|