Spring-Security-Samples/build.gradle

27 lines
654 B
Groovy
Raw Normal View History

plugins {
id "checkstyle"
2020-07-28 12:54:52 -04:00
id "io.spring.javaformat" version "0.0.24-SNAPSHOT"
id 'io.spring.nohttp' version '0.0.3.RELEASE'
}
allprojects {
apply plugin: 'checkstyle'
apply plugin: 'io.spring.javaformat'
repositories {
maven { url "https://repo.spring.io/libs-snapshot" }
}
dependencies {
checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:0.0.23-SNAPSHOT"
}
2020-07-27 18:11:01 -04:00
// 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.")
}
}
}
}