build.gradle 654 B

123456789101112131415161718192021222324252627
  1. plugins {
  2. id "checkstyle"
  3. id "io.spring.javaformat" version "0.0.24-SNAPSHOT"
  4. id 'io.spring.nohttp' version '0.0.3.RELEASE'
  5. }
  6. allprojects {
  7. apply plugin: 'checkstyle'
  8. apply plugin: 'io.spring.javaformat'
  9. repositories {
  10. maven { url "https://repo.spring.io/libs-snapshot" }
  11. }
  12. dependencies {
  13. checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:0.0.23-SNAPSHOT"
  14. }
  15. // Ensure every test task has at least a single test
  16. tasks.withType(Test).configureEach {
  17. afterSuite { desc, result ->
  18. if (result.testCount == 0) {
  19. throw new IllegalStateException("No tests were found. Ensure that useJUnitPlatform was used.")
  20. }
  21. }
  22. }
  23. }