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.afterEvaluate {
|
||||
setupAspectJ(project)
|
||||
}
|
||||
}
|
||||
|
||||
void setupAspectJ(Project project) {
|
||||
project.tasks.withType(JavaCompile) { javaCompileTask ->
|
||||
def javaCompileTaskName = javaCompileTask.name
|
||||
def ajCompileTask = project.tasks.create(name: javaCompileTaskName + 'Aspect', overwrite: true, description: 'Compiles AspectJ Source', type: Ajc) {
|
||||
|
|
Loading…
Reference in New Issue