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-23 07:28:34 +08:00
|
|
|
aspectj.version = aspectjVersion
|
2017-08-21 20:41:55 +08:00
|
|
|
|
|
|
|
dependencies {
|
2019-08-23 07:28:34 +08:00
|
|
|
aspect(project(":spring-orm"))
|
2019-08-23 20:47:39 +08:00
|
|
|
compile("org.aspectj:aspectjweaver:${aspectjVersion}")
|
2019-08-23 23:00:32 +08:00
|
|
|
compileOnly("org.aspectj:aspectjrt:${aspectjVersion}")
|
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
|
2017-12-28 21:08:21 +08:00
|
|
|
optional("javax.cache:cache-api:1.1.0") // for JCache aspect
|
2018-04-11 22:06:10 +08:00
|
|
|
optional("javax.transaction:javax.transaction-api:1.3") // for @javax.transaction.Transactional support
|
2017-08-21 20:41:55 +08:00
|
|
|
testCompile(project(":spring-core")) // for CodeStyleAspect
|
|
|
|
testCompile(project(":spring-test"))
|
2018-09-10 16:52:24 +08:00
|
|
|
testCompile("javax.mail:javax.mail-api:1.6.2")
|
2019-08-23 23:00:32 +08:00
|
|
|
testCompileOnly("org.aspectj:aspectjrt:${aspectjVersion}")
|
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
|
|
|
}
|