ModDevGradle icon indicating copy to clipboard operation
ModDevGradle copied to clipboard

Legacy plugin for 1.17 to 1.20.1

Open shartte opened this issue 1 year ago • 5 comments

Adds a separate net.neoforged.moddev.legacy plugin that lives in a different sourceset and can be used to develop for Minecraft and Forge 1.17 to 1.20.1.

shartte avatar Jul 29 '24 23:07 shartte

  • [x] Publish PR to GitHub Packages

Last commit published: eebbfd7387ab4e6fe1a7995ac2b5b6ae13b59946.

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 #118' // https://github.com/neoforged/ModDevGradle/pull/118
        url 'https://prmaven.neoforged.net/ModDevGradle/pr118'
        content {
            includeModule('net.neoforged.moddev.legacyforge', 'net.neoforged.moddev.legacyforge.gradle.plugin')
            includeModule('net.neoforged', 'moddev-gradle')
            includeModule('net.neoforged.moddev.repositories', 'net.neoforged.moddev.repositories.gradle.plugin')
            includeModule('net.neoforged.moddev', 'net.neoforged.moddev.gradle.plugin')
        }
    }
}

@shartte, this pull request has conflicts, please resolve them for this PR to move forward.

@shartte, this pull request has conflicts, please resolve them for this PR to move forward.

@shartte, this pull request has conflicts, please resolve them for this PR to move forward.

@shartte, this pull request has conflicts, please resolve them for this PR to move forward.

I have been using this for a while and the only issue I found was with this setup when using a version of GregTech when it was built when they were still using ArchLoom.

https://github.com/pietro-lopes/mdg-legacy-pr118

Clone repo and run each of the 3 available runs: 1 failing, 2 working.

I noticed that their metadata.json lacks the info about if the jarjar is obfuscated or not, but I don't know if that alone is enough.

Edit: Can confirm that editing metadata.json takes no effect.

pietro-lopes avatar Oct 26 '24 01:10 pietro-lopes

@pietro-lopes I tried with the official ForgeGradle MDK for 1.20.1 and depending on that version of Gregtech doesn't work there either. (Even after setting mixin.env.refMapRemappingFile, etc.)

shartte avatar Nov 30 '24 11:11 shartte

🚀 This PR has been released as ModDevGradle version 2.0.50-beta.

neoforged-releases[bot] avatar Dec 01 '24 19:12 neoforged-releases[bot]