build.gradle 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. plugins {
  2. id "io.freefair.aspectj.post-compile-weaving" version "5.2.1"
  3. id "java"
  4. }
  5. repositories {
  6. jcenter()
  7. maven { url "https://repo.spring.io/snapshot" }
  8. }
  9. compileJava {
  10. sourceCompatibility "1.8"
  11. targetCompatibility "1.8"
  12. }
  13. compileTestJava {
  14. sourceCompatibility "1.8"
  15. targetCompatibility "1.8"
  16. }
  17. dependencies {
  18. aspect platform("org.springframework:spring-framework-bom:5.3.0")
  19. aspect platform("org.springframework.security:spring-security-bom:5.4.0-SNAPSHOT")
  20. aspect "org.springframework.security:spring-security-aspects"
  21. implementation platform("org.springframework:spring-framework-bom:5.3.0")
  22. implementation platform("org.springframework.security:spring-security-bom:5.5.0-SNAPSHOT")
  23. implementation platform("org.junit:junit-bom:5.7.0")
  24. implementation "org.springframework.security:spring-security-config"
  25. runtimeOnly "org.springframework.security:spring-security-aspects"
  26. testImplementation "org.assertj:assertj-core:3.18.0"
  27. testImplementation "org.springframework:spring-test"
  28. testImplementation "org.springframework.security:spring-security-test"
  29. testImplementation "org.junit.jupiter:junit-jupiter-api"
  30. testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
  31. }
  32. tasks.withType(Test).configureEach {
  33. useJUnitPlatform()
  34. outputs.upToDateWhen { false }
  35. }
  36. //aspectj {
  37. // version = aspectjVersion
  38. //}