build.gradle 1.4 KB

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