Skip to content

Commit

Permalink
build(version): 1.1.19->1.1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
bconlon1 committed Nov 10, 2024
1 parent 0b81eef commit 9e1ee41
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ orbs:
jobs:
publish:
machine:
image: ubuntu-2204:2024.05.1
image: ubuntu-2404:2024.08.1
resource_class: medium
environment:
_JAVA_OPTIONS: -Xmx3200m
Expand Down
2 changes: 1 addition & 1 deletion .circleci/continue_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ orbs:
jobs:
build:
machine:
image: ubuntu-2204:2024.05.1
image: ubuntu-2404:2024.08.1
resource_class: medium
environment:
_JAVA_OPTIONS: -Xmx3200m
Expand Down
70 changes: 45 additions & 25 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
id 'eclipse'
id 'idea'
id 'maven-publish'
id 'net.neoforged.gradle.userdev' version "${neogradle_version}"
id 'net.neoforged.moddev' version "${moddevgradle_version}"
id 'com.matthewprenger.cursegradle' version '[1.4,1.5)'
id 'com.modrinth.minotaur' version '[2,3)'
}
Expand All @@ -21,39 +21,57 @@ base {

java.toolchain.languageVersion = JavaLanguageVersion.of(21)

runs {
configureEach {
systemProperty 'forge.logging.markers', 'REGISTRIES'
systemProperty 'forge.logging.console.level', 'debug'
neoForge {
version = project.neo_version

modSource project.sourceSets.main
}
runs {
configureEach {
systemProperty 'forge.logging.markers', 'REGISTRIES'
logLevel = org.slf4j.event.Level.DEBUG
}

client {
systemProperty 'forge.enabledGameTestNamespaces', mod_id
}
client {
client()
systemProperty 'forge.enabledGameTestNamespaces', mod_id
}

server {
systemProperty 'forge.enabledGameTestNamespaces', mod_id
programArgument '--nogui'
}
server {
server()
systemProperty 'forge.enabledGameTestNamespaces', mod_id
programArgument '--nogui'
}

gameTestServer {
type = "gameTestServer"
systemProperty 'neoforge.enabledGameTestNamespaces', mod_id
}

gameTestServer {
systemProperty 'neoforge.enabledGameTestNamespaces', mod_id
data {
data()
programArguments.addAll '--mod', mod_id, '--all', '--output', file('src/generated/resources/').getAbsolutePath(), '--existing', file('src/main/resources/').getAbsolutePath(), '--existing', file('src/generated/resources/').getAbsolutePath()
}
}

data {
programArguments.addAll '--mod', mod_id, '--all', '--output', file('src/generated/resources/').getAbsolutePath(), '--existing', file('src/main/resources/').getAbsolutePath(), '--existing', file('src/generated/resources/').getAbsolutePath()
mods {
"${mod_id}" {
sourceSet(sourceSets.main)
}
}
}

sourceSets.main.resources {
srcDir 'src/generated/resources'
}

dependencies {
implementation "net.neoforged:neoforge:${project.neo_version}"
processResources {
exclude '.cache/'
}

configurations {
runtimeClasspath.extendsFrom localRuntime
}

dependencies {
compileOnly "mezz.jei:jei-${project.minecraft_version}-common:${project.jei_version}"
compileOnly "mezz.jei:jei-${project.minecraft_version}-neoforge:${project.jei_version}"

Expand All @@ -69,7 +87,7 @@ repositories {
maven { url = "https://maven.architectury.dev/" }
}

tasks.withType(ProcessResources).configureEach {
var generateModMetadata = tasks.register("generateModMetadata", ProcessResources) {
var replaceProperties = [
mod_id : mod_id,
mod_name : mod_name,
Expand All @@ -87,14 +105,16 @@ tasks.withType(ProcessResources).configureEach {
loader_version_range : loader_version_range
]
inputs.properties replaceProperties

filesMatching(['META-INF/neoforge.mods.toml']) {
expand replaceProperties
}
expand replaceProperties
from "src/main/templates"
into "build/generated/sources/modMetadata"
}
sourceSets.main.resources.srcDir generateModMetadata
neoForge.ideSyncTask generateModMetadata

tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
options.compilerArgs << "-Xmaxerrs" << "9000"
}

tasks.register('sourceJar', Jar) {
Expand Down
2 changes: 2 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# Nitrogen
[![Modloader: Forge](https://img.shields.io/badge/mod%20loader-forge-CC974D?style=flat-square)](https://files.minecraftforge.net/net/minecraftforge/forge/)
[![Modloader: NeoForge](https://img.shields.io/badge/mod%20loader-neoforge-E08234?style=flat-square)](https://neoforged.net/)
[![Modloader: Fabric](https://img.shields.io/badge/mod%20loader-fabric-1F6FEB?style=flat-square)](https://fabricmc.net/use/installer/)
[![CircleCI](https://circleci.com/gh/The-Aether-Team/Nitrogen/tree/1.20.1-develop.svg?style=shield)](https://app.circleci.com/pipelines/github/The-Aether-Team/Nitrogen?branch=1.20.1-develop)
[![Code license (LGPL v3.0)](https://img.shields.io/badge/code%20license-LGPL%20v3.0-green.svg?style=flat-square)](https://github.com/The-Aether-Team/Nitrogen/blob/1.20.1-develop/LICENSE.txt)

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ neogradle.subsystems.parchment.mappingsVersion=2024.07.28
mod_id=nitrogen_internals
mod_group=com.aetherteam.nitrogen
mod_name=Nitrogen
mod_version=1.1.19
mod_version=1.1.20
mod_license=Assets: All Rights Reserved; Code: LGPL-3.0
mod_url=https://github.com/The-Aether-Team/Nitrogen
mod_tracker=https://github.com/The-Aether-Team/Nitrogen/issues
Expand All @@ -22,7 +22,7 @@ mod_description=A library used for the Aether series of mods.
minecraft_version=1.21.1
minecraft_version_range=[1.21.1,1.21.2)

neogradle_version=7.0.145
moddevgradle_version=2.0.42-beta

neo_version=21.1.47
neo_version_range=[21.1.47,)
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 9e1ee41

Please sign in to comment.