Skip to content

Commit

Permalink
Constant for version
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte committed Dec 22, 2023
1 parent cf987f9 commit e07f05f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import net.minecraftforge.gdi.ConfigurableDSLElement;
import net.neoforged.gradle.dsl.common.extensions.subsystems.DecompilerLogLevel;
import net.neoforged.gradle.dsl.common.extensions.subsystems.Subsystems;
import net.neoforged.gradle.dsl.common.util.Constants;
import org.gradle.api.GradleException;
import org.gradle.api.Project;
import org.gradle.api.provider.Provider;
Expand Down Expand Up @@ -40,7 +41,7 @@ public SubsystemsExtension(Project project) {
getRecompiler().getMaxMemory().convention(getStringProperty("recompiler.maxMemory").orElse(DEFAULT_RECOMPILER_MAX_MEMORY));

// Parchment defaults
getParchment().getToolArtifact().convention("net.neoforged:apply-parchment-bundle:1.0.10");
getParchment().getToolArtifact().convention(Constants.APPLYPARCHMENT);
getParchment().getEnabled().convention(getParchment().getParchmentArtifact()
.map(s -> !s.isEmpty()).orElse(false));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Constants {
public static final String FART_VERSION = "1.0.2";
public static final String FART_ARTIFACT_INTERPOLATION = "net.minecraftforge:ForgeAutoRenamingTool:%s:all";
public static final String FART = String.format(FART_ARTIFACT_INTERPOLATION, FART_VERSION);
public static final String APPLYPARCHMENT = "net.neoforged:apply-parchment-bundle:1.0.16";
public static final String SRG2SOURCE = "net.minecraftforge:Srg2Source:8.+:fatjar";
public static final String SIDESTRIPPER = "net.minecraftforge:mergetool:1.1.5:fatjar";
public static final String INSTALLERTOOLS = "net.minecraftforge:installertools:1.3.2:fatjar";
Expand Down

0 comments on commit e07f05f

Please sign in to comment.