From 03f0d87e860e7a2976f96950ae734e6905e102d7 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Mon, 18 Sep 2017 14:26:12 -0500 Subject: [PATCH] AspectJPlugin Defers until afterEvaluate Fixes for changes in SpringIoPlugin at https://github.com/spring-gradle-plugins/spring-io-plugin/commit/029d8757df6b8b09da3ea5bd1a1ca3e977d24a57 --- buildSrc/src/main/groovy/aspectj/AspectJPlugin.groovy | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/buildSrc/src/main/groovy/aspectj/AspectJPlugin.groovy b/buildSrc/src/main/groovy/aspectj/AspectJPlugin.groovy index 8f452689dd..42258f13ea 100644 --- a/buildSrc/src/main/groovy/aspectj/AspectJPlugin.groovy +++ b/buildSrc/src/main/groovy/aspectj/AspectJPlugin.groovy @@ -38,6 +38,12 @@ class AspectJPlugin implements Plugin { 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) {