Skip to content

Conversation

@Technici4n
Copy link
Member

@Technici4n Technici4n commented Nov 7, 2025

Requires: neoforged/NeoForge#2794

  • I want to have the resources in the MC jar as well, but that will probably require an update in NFRT.
  • We should give the MC jar a better name than neoforge-<version>-merged.jar since it doesn't contain NeoForge anymore.
  • Should we already anticipate split sources?

@neoforged-pr-publishing
Copy link

neoforged-pr-publishing bot commented Nov 7, 2025

  • Publish PR to GitHub Packages

Last commit published: 4d114eaec60d838bee65c584d398b580a95c9344 - version: 2.0.146-pr-298-universal-jar

PR Publishing

The artifacts published by this PR:

Repository Declaration

In 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")
        }
    }
}

@neoforged-automation neoforged-automation bot added the needs rebase This Pull Request needs to be rebased before being merged label Dec 11, 2025
@neoforged-automation
Copy link

@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
@neoforged-automation neoforged-automation bot removed the needs rebase This Pull Request needs to be rebased before being merged label Dec 18, 2025
@shartte

This comment has been minimized.

Comment on lines +126 to +132
// 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()));
}
Copy link
Collaborator

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

@shartte shartte changed the title [WIP] Use universal jar in dev Support for 26.1 / unobfuscated Minecraft Dec 19, 2025
@shartte shartte marked this pull request as ready for review December 19, 2025 00:53
@shartte shartte merged commit 7002c31 into main Dec 20, 2025
10 checks passed
@shartte shartte deleted the universal-jar branch December 20, 2025 00:58
@neoforged-releases
Copy link

🚀 This PR has been released as ModDevGradle version 2.0.131.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants