2017-08-21 20:41:55 +08:00
|
|
|
description = "Spring Aspects"
|
|
|
|
|
2019-08-23 07:28:34 +08:00
|
|
|
apply plugin: "io.freefair.aspectj"
|
2012-01-21 20:27:14 +08:00
|
|
|
|
2019-08-23 07:28:34 +08:00
|
|
|
sourceSets.main.aspectj.srcDir "src/main/java"
|
|
|
|
sourceSets.main.java.srcDirs = files()
|
2013-01-11 05:17:37 +08:00
|
|
|
|
2019-08-23 07:28:34 +08:00
|
|
|
sourceSets.test.aspectj.srcDir "src/test/java"
|
|
|
|
sourceSets.test.java.srcDirs = files()
|
2017-08-21 20:41:55 +08:00
|
|
|
|
2019-08-27 03:13:12 +08:00
|
|
|
aspectj.version = dependencyManagement.managedVersions['org.aspectj:aspectjweaver']
|
2017-08-21 20:41:55 +08:00
|
|
|
|
|
|
|
dependencies {
|
2019-08-27 03:13:12 +08:00
|
|
|
compile("org.aspectj:aspectjweaver")
|
|
|
|
compileOnly("org.aspectj:aspectjrt")
|
2017-08-21 20:41:55 +08:00
|
|
|
optional(project(":spring-aop")) // for @Async support
|
|
|
|
optional(project(":spring-beans")) // for @Configurable support
|
|
|
|
optional(project(":spring-context")) // for @Enable* support
|
|
|
|
optional(project(":spring-context-support")) // for JavaMail and JSR-107 support
|
|
|
|
optional(project(":spring-orm")) // for JPA exception translation support
|
|
|
|
optional(project(":spring-tx")) // for JPA, @Transactional support
|
2019-09-25 18:43:24 +08:00
|
|
|
optional("javax.cache:cache-api") // for JCache aspect
|
2019-08-27 03:13:12 +08:00
|
|
|
optional("javax.transaction:javax.transaction-api") // for @javax.transaction.Transactional support
|
2017-08-21 20:41:55 +08:00
|
|
|
testCompile(project(":spring-core")) // for CodeStyleAspect
|
|
|
|
testCompile(project(":spring-test"))
|
2019-12-29 00:13:39 +08:00
|
|
|
testCompile(testFixtures(project(":spring-context")))
|
2019-12-29 22:43:15 +08:00
|
|
|
testCompile(testFixtures(project(":spring-context-support")))
|
2019-12-28 18:44:40 +08:00
|
|
|
testCompile(testFixtures(project(":spring-core")))
|
2019-12-30 01:38:33 +08:00
|
|
|
testCompile(testFixtures(project(":spring-tx")))
|
2019-08-27 03:13:12 +08:00
|
|
|
testCompile("javax.mail:javax.mail-api")
|
|
|
|
testCompileOnly("org.aspectj:aspectjrt")
|
2017-08-21 20:41:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
eclipse.project {
|
|
|
|
natures += "org.eclipse.ajdt.ui.ajnature"
|
|
|
|
buildCommands = [new org.gradle.plugins.ide.eclipse.model.BuildCommand("org.eclipse.ajdt.core.ajbuilder")]
|
2017-09-23 17:28:19 +08:00
|
|
|
}
|