Prior to this commit, the Spring Framework build would partially use the
dependency management plugin to import and enforce BOMs.
This commit applies the dependency management plugin to all Java
projects and regroups all version management declaration in the root
`build.gradle` file (versions and exclusions).
Some versions are overridden in specific modules for
backwards-compatibility reasons or extended support.
This commit also adds the Gradle versions plugin that checks for
dependency upgrades in artifact repositories and produces a report; you
can use the following:
./gradlew dependencyUpdates
35 lines
1.3 KiB
Groovy
35 lines
1.3 KiB
Groovy
description = "Spring Aspects"
|
|
|
|
apply plugin: "io.freefair.aspectj"
|
|
|
|
sourceSets.main.aspectj.srcDir "src/main/java"
|
|
sourceSets.main.java.srcDirs = files()
|
|
|
|
sourceSets.test.aspectj.srcDir "src/test/java"
|
|
sourceSets.test.java.srcDirs = files()
|
|
|
|
aspectj.version = dependencyManagement.managedVersions['org.aspectj:aspectjweaver']
|
|
|
|
dependencies {
|
|
aspect(project(":spring-orm"))
|
|
compile("org.aspectj:aspectjweaver")
|
|
compileOnly("org.aspectj:aspectjrt")
|
|
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
|
|
optional("javax.cache:cache-api") // for JCache aspect
|
|
optional("javax.transaction:javax.transaction-api") // for @javax.transaction.Transactional support
|
|
testCompile(project(":spring-core")) // for CodeStyleAspect
|
|
testCompile(project(":spring-test"))
|
|
testCompile("javax.mail:javax.mail-api")
|
|
testCompileOnly("org.aspectj:aspectjrt")
|
|
}
|
|
|
|
eclipse.project {
|
|
natures += "org.eclipse.ajdt.ui.ajnature"
|
|
buildCommands = [new org.gradle.plugins.ide.eclipse.model.BuildCommand("org.eclipse.ajdt.core.ajbuilder")]
|
|
}
|