-
-
Notifications
You must be signed in to change notification settings - Fork 27
Support for 26.1 / unobfuscated Minecraft #298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Last commit published: 4d114eaec60d838bee65c584d398b580a95c9344 - version: PR PublishingThe artifacts published by this PR:
Repository DeclarationIn order to use the artifacts published by the PR, add the following repository to your buildscript: repositories {
maven {
name = "Maven for PR #298" // https://github.com/neoforged/ModDevGradle/pull/298
url = uri("https://prmaven.neoforged.net/ModDevGradle/pr298")
content {
includeModule("net.neoforged.moddev.legacyforge", "net.neoforged.moddev.legacyforge.gradle.plugin")
includeModule("net.neoforged.moddev.legacyforge.repositories", "net.neoforged.moddev.legacyforge.repositories.gradle.plugin")
includeModule("net.neoforged.moddev", "net.neoforged.moddev.gradle.plugin")
includeModule("net.neoforged.moddev.repositories", "net.neoforged.moddev.repositories.gradle.plugin")
includeModule("net.neoforged", "moddev-gradle")
}
}
} |
83cbe16 to
9d3a358
Compare
|
@Technici4n, this pull request has conflicts, please resolve them for this PR to move forward. |
# Conflicts: # src/main/java/net/neoforged/moddevgradle/internal/ModDevArtifactsWorkflow.java # src/main/java/net/neoforged/nfrtgradle/CreateMinecraftArtifacts.java
This comment has been minimized.
This comment has been minimized.
| // NFRT itself needs to run with a newer version of the JDK to be able to compile with -release 25, for example | ||
| // It can however not run with Java 25 and compile Java 8 code while maintaining the same lambda naming. | ||
| if (versionCapabilities.javaVersion() > 21) { | ||
| task.getJavaExecutable().set(javaToolchainService | ||
| .launcherFor(spec -> spec.getLanguageVersion().set(JavaLanguageVersion.of(versionCapabilities.javaVersion()))) | ||
| .map(javaLauncher -> javaLauncher.getExecutablePath().getAsFile().getAbsolutePath())); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this works, it seems more future proof to run javac in NFRT with the external tool JRE
|
🚀 This PR has been released as ModDevGradle version |
Requires: neoforged/NeoForge#2794neoforge-<version>-merged.jarsince it doesn't contain NeoForge anymore.