Skip to content

Commit

Permalink
Update ModDevGradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Su5eD committed Dec 16, 2024
1 parent aade659 commit 569b2a2
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public String findReplacement(List<String> cleanCallOrder, List<String> dirtyCal
return null;
}

if (this.after.isEmpty()) {
return null;
}
MethodInsnNode nextMethodCall = MethodCallAnalyzer.findFirstInsn(this.after.getFirst(), MethodInsnNode.class, MethodCallAnalyzer.FORWARD);
if (nextMethodCall == null) {
return null;
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ org.gradle.caching=true
org.gradle.configuration-cache=true

versionMc=1.21.1
versionNeoForge=21.1.5
versionModDevGradle=2.0.9-beta
versionNeoForge=21.1.90
versionModDevGradle=2.0.52-beta

runtimeVersion=1.0.0
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private static void applyPlugin(Project project, AppliedPlugin plugin) {
TaskProvider<CreateBinpatchedArtifactTask> createBinpatchedArtifactTask = project.getTasks().named("createBinpatchedArtifact", CreateBinpatchedArtifactTask.class);

project.getTasks().register("generateAdapterData", AdapterCompareJarTask.class, task -> {
task.getCleanJar().fileProvider(neoForge.getNeoFormRuntime().getAdditionalResults().map(p -> p.get("vanillaDeobfuscated")));
task.getCleanJar().fileProvider(neoForge.getAdditionalMinecraftArtifacts().map(p -> p.get("vanillaDeobfuscated")));
task.getDirtyJar().set(createBinpatchedArtifactTask.flatMap(CreateBinpatchedArtifactTask::getOutputFile));
});
}
Expand Down
2 changes: 1 addition & 1 deletion test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ tasks {
test {
useJUnitPlatform()
systemProperty("adapter.definition.paramdiff.debug", true)
systemProperty("adapter.clean.path", neoForge.neoFormRuntime.additionalResults.getting("vanillaDeobfuscated").get().absolutePath)
systemProperty("adapter.clean.path", neoForge.additionalMinecraftArtifacts.getting("vanillaDeobfuscated").get().absolutePath)
systemProperty("forge.logging.console.level", "debug")
outputs.upToDateWhen { false }
}
Expand Down
2 changes: 1 addition & 1 deletion userdev/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "org.sinytra.adapter"
version = "1.2-SNAPSHOT"
version = "1.2.1-SNAPSHOT"

val versionModDevGradle: String by Properties().also { file("../gradle.properties").bufferedReader().use(it::load) }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static void applyPlugin(Project project) {
});

File requestedOutput = project.file("build/createCleanArtifact/minecraft-renamed.jar");
neoForge.getNeoFormRuntime().getAdditionalResults().put("vanillaDeobfuscated", requestedOutput);
neoForge.getAdditionalMinecraftArtifacts().put("vanillaDeobfuscated", requestedOutput);

TaskProvider<ExtractBinPatches> extractBinPatches = project.getTasks().register("extractBinPatches", ExtractBinPatches.class, task -> {
task.setGroup("sinytra");
Expand Down

0 comments on commit 569b2a2

Please sign in to comment.