Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Latest commit

 

History

History
71 lines (54 loc) · 2.81 KB

File metadata and controls

71 lines (54 loc) · 2.81 KB

modlauncher-injector-junit

GitHub Workflow Status (branch) MIT License Maven Central Sonatype Nexus (Snapshots)


This repository has been archived.

This project was developed when there was no proper way to specify a custom classloader to JUnit 5. Today JUnit 5 has a proper API to do that. ModLauncher has also changed quite a lot since. This project is now completely obsolete and has never been used in production by Sponge.


A helper library to allow running JUnit tests in a ModLauncher context.

Prerequisites

  • Java 8

Building from Source

In order to build you simply need to run the ./gradlew build command. You can find the compiled JAR file in ./build/libs labeled similarly to 'modlauncher-injector-junit-x.x.x-SNAPSHOT.jar'.

Contributing

Are you a talented programmer looking to contribute some code? We'd love the help!

  • Open a pull request with your changes, following our guidelines.

Usage

modlauncher-injector-junit publishes releases on Maven Central and Sponge's own repository. Snapshots are published on Sonatype OSSRH and Sponge's repository.

If you're using Gradle to manage project dependencies, simply include the following in your build.gradle file:

repositories {
  // releases
  mavenCentral()
  // snapshots
  maven {
    url "https://repo.spongepowered.org/repository/maven-public/"
  }
}

dependencies {
  implementation "org.spongepowered:modlauncher-injector-junit:1.0.0"
}

If you're using Maven to manage project dependencies, simply include the following in your pom.xml file:

<dependency>
  <groupId>org.spongepowered</groupId>
  <artifactId>modlauncher-injector-junit</artifactId>
  <version>1.0.0</version>
</dependency>

Credits