NeoForge icon indicating copy to clipboard operation
NeoForge copied to clipboard

Add a JUnit subproject

Open Matyrobbrt opened this issue 2 years ago • 1 comments

This subproject provides JUnit-specific utilities, like an ephemeral server.
Depends on https://github.com/neoforged/FancyModLoader/pull/54 and https://github.com/neoforged/NeoGradle/pull/107

Matyrobbrt avatar Jan 24 '24 16:01 Matyrobbrt

  • [x] Publish PR to GitHub Packages

Last commit published: 033bfc15116c652356a25077234a74e2ebe3618b.

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 #573' // https://github.com/neoforged/NeoForge/pull/573
        url 'https://prmaven.neoforged.net/NeoForge/pr573'
        content {
            includeModule('net.neoforged', 'testframework')
            includeModule('net.neoforged', 'neoforge')
        }
    }
}

MDK installation

In order to setup a MDK using the latest PR version, run the following commands in a terminal.
The script works on both *nix and Windows as long as you have the JDK bin folder on the path.
The script will clone the MDK in a folder named NeoForge-pr573.
On Powershell you will need to remove the -L flag from the curl invocation.

mkdir NeoForge-pr573
cd NeoForge-pr573
curl -L https://prmaven.neoforged.net/NeoForge/pr573/net/neoforged/neoforge/20.6.109-beta-pr-573-junit/mdk-pr573.zip -o mdk.zip
jar xf mdk.zip
rm mdk.zip || del mdk.zip

To test a production environment, you can download the installer from here.