From b84c66655680d5461268ecb9e6076a3b31894cf1 Mon Sep 17 00:00:00 2001 From: Lars Grefer Date: Mon, 28 Aug 2023 01:54:33 +0200 Subject: [PATCH] fix deprecation warnings --- .../java/io/freefair/gradle/plugins/aspectj/AspectJPlugin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.");