spring-security-aspects.gradle 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. apply plugin: 'io.spring.convention.spring-module'
  2. apply plugin: 'io.freefair.aspectj'
  3. compileAspectj {
  4. sourceCompatibility "17"
  5. targetCompatibility "17"
  6. }
  7. compileTestAspectj {
  8. sourceCompatibility "17"
  9. targetCompatibility "17"
  10. }
  11. dependencies {
  12. management platform(project(":spring-security-dependencies"))
  13. api "org.aspectj:aspectjrt"
  14. api project(':spring-security-core')
  15. api 'org.springframework:spring-beans'
  16. api 'org.springframework:spring-context'
  17. api 'org.springframework:spring-core'
  18. testImplementation 'org.springframework:spring-aop'
  19. testImplementation "org.assertj:assertj-core"
  20. testImplementation "org.junit.jupiter:junit-jupiter-api"
  21. testImplementation "org.junit.jupiter:junit-jupiter-params"
  22. testImplementation "org.junit.jupiter:junit-jupiter-engine"
  23. testImplementation "org.mockito:mockito-core"
  24. testImplementation "org.mockito:mockito-junit-jupiter"
  25. testImplementation "org.springframework:spring-test"
  26. testAspect sourceSets.main.output
  27. }
  28. sourceSets.main.aspectj.srcDir "src/main/java"
  29. sourceSets.main.java.srcDirs = files()
  30. sourceSets.test.aspectj.srcDir "src/test/java"
  31. sourceSets.test.java.srcDirs = files()
  32. compileAspectj.ajcOptions.outxmlfile = "META-INF/aop.xml"