浏览代码

AspectJPlugin Defers until afterEvaluate

Fixes for changes in SpringIoPlugin at
https://github.com/spring-gradle-plugins/spring-io-plugin/commit/029d8757df6b8b09da3ea5bd1a1ca3e977d24a57
Rob Winch 8 年之前
父节点
当前提交
03f0d87e86
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      buildSrc/src/main/groovy/aspectj/AspectJPlugin.groovy

+ 6 - 0
buildSrc/src/main/groovy/aspectj/AspectJPlugin.groovy

@@ -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) {