mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-01 09:42:13 +00:00
AspectJPlugin Defers until afterEvaluate
Fixes for changes in SpringIoPlugin at
029d8757df
This commit is contained in:
parent
c46243594a
commit
03f0d87e86
@ -38,6 +38,12 @@ class AspectJPlugin implements Plugin<Project> {
|
|||||||
project.configurations.create('aspectpath')
|
project.configurations.create('aspectpath')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
project.afterEvaluate {
|
||||||
|
setupAspectJ(project)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void setupAspectJ(Project project) {
|
||||||
project.tasks.withType(JavaCompile) { javaCompileTask ->
|
project.tasks.withType(JavaCompile) { javaCompileTask ->
|
||||||
def javaCompileTaskName = javaCompileTask.name
|
def javaCompileTaskName = javaCompileTask.name
|
||||||
def ajCompileTask = project.tasks.create(name: javaCompileTaskName + 'Aspect', overwrite: true, description: 'Compiles AspectJ Source', type: Ajc) {
|
def ajCompileTask = project.tasks.create(name: javaCompileTaskName + 'Aspect', overwrite: true, description: 'Compiles AspectJ Source', type: Ajc) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user