Skip to content

The-Aether-Team/Nitrogen

Repository files navigation

Nitrogen

Modloader: Forge CircleCI Code license (LGPL v3.0)

Nitrogen is a library mod used by The Aether Team to abstract code that is usable by both The Aether and The Aether II to allow for easier maintenance and organization. This library is intended for usage by The Aether Team, and isn't particularly useful to use or possible to contribute to if you're an outside developer. This library will also not be released on CurseForge. This repository is only public for visibility and ease of use for the team.

📦 Download the latest releases

Packages

To install this mod through GitHub Packages in Gradle for development, you will need the Gradle Github Packages Plugin. To use it, make sure you have access to the Gradle plugins maven and the plugin as a buildscript dependency:

Buildscript Code

settings.gradle

pluginManagement {
    repositories {
        gradlePluginPortal()
    }
}

build.gradle

plugins {
    id 'io.github.0ffz.github-packages' version '[1,2)'
}

Then you need to specify the package you want to use in your repository:

Repositories Code
repositories {
  ...
  maven githubPackage.invoke("The-Aether-Team/Nitrogen")
}

Then load it through your dependencies, with project.nitrogen_version specified in the gradle.properties:

Dependencies Code
dependencies {
  ...
  implementation fg.deobf("com.aetherteam.nitrogen:nitrogen_internals:${project.nitrogen_version}")
  ...
  jarJar fg.deobf("com.aetherteam.nitrogen:nitrogen_internals:${project.nitrogen_version}") {
    jarJar.ranged(it, "[${project.nitrogen_version},)")
    jarJar.pin(it, "${project.nitrogen_version}")
  }
}