* Use better gradle conventions, and fix #311 * Fix checkstyle * Revert some changes * Use convention * Remove set classpathdev/0.11
parent
06e60e5c29
commit
be17a02e90
|
@ -114,8 +114,8 @@ public class RemapConfiguration {
|
|||
|
||||
if (isDefaultRemap) {
|
||||
extension.getUnmappedModCollection().from(jarTask);
|
||||
remapJarTask.getAddNestedDependencies().set(true);
|
||||
remapJarTask.getRemapAccessWidener().set(true);
|
||||
remapJarTask.getAddNestedDependencies().convention(true);
|
||||
remapJarTask.getRemapAccessWidener().convention(true);
|
||||
|
||||
project.getArtifacts().add("archives", remapJarTask);
|
||||
}
|
||||
|
|
|
@ -91,15 +91,16 @@ public class RemapJarTask extends Jar {
|
|||
|
||||
public RemapJarTask() {
|
||||
super();
|
||||
LoomGradleExtension extension = LoomGradleExtension.get(getProject());
|
||||
input = getProject().getObjects().fileProperty();
|
||||
addNestedDependencies = getProject().getObjects().property(Boolean.class);
|
||||
addDefaultNestedDependencies = getProject().getObjects().property(Boolean.class);
|
||||
remapAccessWidener = getProject().getObjects().property(Boolean.class);
|
||||
// false by default, I have no idea why I have to do it for this property and not the other one
|
||||
remapAccessWidener.set(false);
|
||||
addDefaultNestedDependencies.set(true);
|
||||
addNestedDependencies = getProject().getObjects().property(Boolean.class)
|
||||
.convention(false);
|
||||
addDefaultNestedDependencies = getProject().getObjects().property(Boolean.class)
|
||||
.convention(true);
|
||||
remapAccessWidener = getProject().getObjects().property(Boolean.class)
|
||||
.convention(false);
|
||||
|
||||
if (!LoomGradleExtension.get(getProject()).getMixin().getUseLegacyMixinAp().get()) {
|
||||
if (!extension.getMixin().getUseLegacyMixinAp().get()) {
|
||||
remapOptions.add(b -> b.extension(new MixinExtension()));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,5 +34,6 @@ public class RunClientTask extends AbstractRunTask {
|
|||
LoomGradleExtension extension = LoomGradleExtension.get(project);
|
||||
return RunConfig.runConfig(project, extension.getRunConfigs().getByName("client"));
|
||||
});
|
||||
LoomGradleExtension.get(getProject()).getDeprecationHelper().replaceWithInLoom0_11("RunClientTask", "RunGameTask");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,5 +34,6 @@ public class RunServerTask extends AbstractRunTask {
|
|||
LoomGradleExtension extension = LoomGradleExtension.get(project);
|
||||
return RunConfig.runConfig(project, extension.getRunConfigs().getByName("client"));
|
||||
});
|
||||
LoomGradleExtension.get(getProject()).getDeprecationHelper().replaceWithInLoom0_11("RunServerTask", "RunGameTask");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue