diff --git a/aspectj-plugin/src/main/java/io/freefair/gradle/plugins/aspectj/AspectJPlugin.java b/aspectj-plugin/src/main/java/io/freefair/gradle/plugins/aspectj/AspectJPlugin.java index ae1063c8..0c805013 100644 --- a/aspectj-plugin/src/main/java/io/freefair/gradle/plugins/aspectj/AspectJPlugin.java +++ b/aspectj-plugin/src/main/java/io/freefair/gradle/plugins/aspectj/AspectJPlugin.java @@ -90,7 +90,8 @@ private void configureSourceSet(SourceSet sourceSet) { project.getConfigurations().getByName(sourceSet.getCompileOnlyConfigurationName()).extendsFrom(inpath); final TaskProvider compileTask = project.getTasks().register(sourceSet.getCompileTaskName("aspectj"), AspectjCompile.class, compile -> { - JvmPluginsHelper.configureForSourceSet(sourceSet, aspectjSource, compile, compile.getOptions(), project); + JvmPluginsHelper.compileAgainstJavaOutputs(compile, sourceSet, project.getObjects()); + JvmPluginsHelper.configureAnnotationProcessorPath(sourceSet, aspectjSource, compile.getOptions(), project); compile.dependsOn(sourceSet.getCompileJavaTaskName()); compile.getLauncher().convention(defaultLauncher); compile.setDescription("Compiles the " + sourceSet.getName() + " AspectJ source.");