Skip to content

Commit

Permalink
Make Vineflower the default decompiler (#1110)
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 authored Apr 26, 2024
1 parent 2c3a0ad commit 2752dc3
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ guava = "33.0.0-jre"
stitch = "0.6.2"
tiny-remapper = "0.10.1"
access-widener = "2.1.0"
mapping-io = "0.5.1"
mapping-io = "0.6.1"
lorenz-tiny = "4.0.2"
mercury = "0.4.1"
kotlinx-metadata = "0.9.0"
Expand Down
2 changes: 1 addition & 1 deletion gradle/runtime.libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Decompilers
fernflower = "2.0.0"
cfr = "0.2.2"
vineflower = "1.10.0"
vineflower = "1.10.1"

# Runtime depedencies
mixin-compile-extensions = "0.6.0"
Expand Down
4 changes: 2 additions & 2 deletions gradle/test.libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ mockito = "5.11.0"
java-debug = "0.52.0"
mixin = "0.12.5+mixin.0.8.5"

gradle-nightly = "8.9-20240413002319+0000"
fabric-loader = "0.15.9"
gradle-nightly = "8.9-20240426001649+0000"
fabric-loader = "0.15.10"
fabric-installer = "1.0.1"

[libraries]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
import net.fabricmc.loom.util.Constants;

public abstract class DecompileConfiguration<T extends MappedMinecraftProvider> {
static final String DEFAULT_DECOMPILER = "Vineflower";

protected final Project project;
protected final T minecraftProvider;
protected final LoomGradleExtension extension;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public final void afterEvaluation() {
task.setDescription("Decompile minecraft using the default decompiler.");
task.setGroup(Constants.TaskGroup.FABRIC);

task.dependsOn(project.getTasks().named("genSourcesWithCfr"));
task.dependsOn(project.getTasks().named("genSourcesWith" + DecompileConfiguration.DEFAULT_DECOMPILER));
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private TaskProvider<Task> createDecompileTasks(String name, Action<GenerateSour
task.setDescription("Decompile minecraft (%s) using the default decompiler.".formatted(name));
task.setGroup(Constants.TaskGroup.FABRIC);

task.dependsOn(project.getTasks().named("gen%sSourcesWithCfr".formatted(name)));
task.dependsOn(project.getTasks().named("gen%sSourcesWith%s".formatted(name, DecompileConfiguration.DEFAULT_DECOMPILER)));
});
}
}

0 comments on commit 2752dc3

Please sign in to comment.