spring-aspects.gradle 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. description = "Spring Aspects"
  2. apply plugin: "io.freefair.aspectj"
  3. sourceSets.main.aspectj.srcDir "src/main/java"
  4. sourceSets.main.java.srcDirs = files()
  5. sourceSets.test.aspectj.srcDir "src/test/java"
  6. sourceSets.test.java.srcDirs = files()
  7. aspectj.version = dependencyManagement.managedVersions['org.aspectj:aspectjweaver']
  8. dependencies {
  9. compile("org.aspectj:aspectjweaver")
  10. compileOnly("org.aspectj:aspectjrt")
  11. optional(project(":spring-aop")) // for @Async support
  12. optional(project(":spring-beans")) // for @Configurable support
  13. optional(project(":spring-context")) // for @Enable* support
  14. optional(project(":spring-context-support")) // for JavaMail and JSR-107 support
  15. optional(project(":spring-orm")) // for JPA exception translation support
  16. optional(project(":spring-tx")) // for JPA, @Transactional support
  17. optional("javax.cache:cache-api") // for JCache aspect
  18. optional("javax.transaction:javax.transaction-api") // for @javax.transaction.Transactional support
  19. testCompile(project(":spring-core")) // for CodeStyleAspect
  20. testCompile(project(":spring-test"))
  21. testCompile(testFixtures(project(":spring-context")))
  22. testCompile(testFixtures(project(":spring-context-support")))
  23. testCompile(testFixtures(project(":spring-core")))
  24. testCompile(testFixtures(project(":spring-tx")))
  25. testCompile("javax.mail:javax.mail-api")
  26. testCompileOnly("org.aspectj:aspectjrt")
  27. }
  28. eclipse.project {
  29. natures += "org.eclipse.ajdt.ui.ajnature"
  30. buildCommands = [new org.gradle.plugins.ide.eclipse.model.BuildCommand("org.eclipse.ajdt.core.ajbuilder")]
  31. }