Yet another attempt to fix the annotation processor issue.

This commit is contained in:
modmuss50
2019-12-13 18:24:01 +00:00
parent 5c2b669bb5
commit c2d61875e1
4 changed files with 15 additions and 5 deletions

View File

@@ -241,7 +241,7 @@ public class AbstractPlugin implements Plugin<Project> {
Javadoc javadoc = (Javadoc) project.getTasks().getByName(JavaPlugin.JAVADOC_TASK_NAME);
javadoc.setClasspath(main.getOutput().plus(main.getCompileClasspath()));
if (!Boolean.parseBoolean(System.getProperty("idea.sync.active", "false"))) {
if (!project.getExtensions().getByType(LoomGradleExtension.class).ideSync()) {
// Add Mixin dependencies
project.getDependencies().add(JavaPlugin.ANNOTATION_PROCESSOR_CONFIGURATION_NAME, "net.fabricmc:fabric-mixin-compile-extensions:" + Constants.MIXIN_COMPILE_EXTENSIONS_VERSION);
}