-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d0d457
commit 69a1a48
Showing
15 changed files
with
284 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,10 @@ jobs: | |
build: | ||
if: | | ||
!contains(github.event.head_commit.message, '[ciskip]') | ||
uses: nanite/workflows/.github/workflows/standard-arch-release.yml@v1 | ||
uses: nanite/workflows/.github/workflows/[email protected] | ||
with: | ||
gradle-tasks: 'build publish publishMods' | ||
secrets: | ||
nanite-token: ${{ secrets.NANITE_DEPLOY }} | ||
curse-token: ${{ secrets.CURSE_DEPLOY }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
## [81.1.0] | ||
## [82.0.0] | ||
|
||
### Changed | ||
|
||
- Ported to 1.20.1 | ||
- Ported to 1.20.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
org.gradle.jvmargs=-Xmx2048M | ||
|
||
minecraft_version=1.20.1 | ||
enabled_platforms=fabric,forge | ||
minecraft_version=1.20.2 | ||
enabled_platforms=fabric,forge,neoforge | ||
|
||
archives_base_name=default-server-properties | ||
mod_version=81.1.0 | ||
mod_version=82.0.0 | ||
maven_group=dev.nanite.mods | ||
|
||
fabric_loader_version=0.14.21 | ||
fabric_api_version=0.83.1+1.20.1 | ||
fabric_loader_version=0.15.3 | ||
fabric_api_version=0.91.2+1.20.2 | ||
|
||
forge_version=1.20.1-47.0.6 | ||
forge_version=48.1.0 | ||
neo_forge=20.2.86 | ||
|
||
curseforge_id=676811 | ||
modrinth_id=Fnrzx9Jl | ||
github_repo=nanite/Default-Server-Properties | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.1.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
plugins { | ||
id "com.github.johnrengelman.shadow" version "7.1.2" | ||
} | ||
|
||
architectury { | ||
platformSetupLoomIde() | ||
neoForge() | ||
} | ||
|
||
repositories { | ||
maven { | ||
url "https://maven.saps.dev/mirror" | ||
} | ||
} | ||
|
||
loom { | ||
accessWidenerPath = project(":common").loom.accessWidenerPath | ||
neoForge { | ||
|
||
} | ||
} | ||
|
||
configurations { | ||
common | ||
shadowCommon // Don't use shadow from the shadow plugin since it *excludes* files. | ||
compileClasspath.extendsFrom common | ||
runtimeClasspath.extendsFrom common | ||
developmentNeoForge.extendsFrom common | ||
} | ||
|
||
dependencies { | ||
neoForge "net.neoforged:neoforge:${rootProject.neo_forge}" | ||
|
||
common(project(path: ":common", configuration: "namedElements")) { transitive false } | ||
shadowCommon(project(path: ":common", configuration: "transformProductionNeoForge")) { transitive = false } | ||
} | ||
|
||
processResources { | ||
def forgeMajor = ((String) rootProject.forge_version).split("-").last().split("\\.").first() | ||
inputs.properties([ | ||
version: project.version, | ||
mcversion: rootProject.minecraft_version, | ||
forgemajor: forgeMajor | ||
]) | ||
|
||
filesMatching("META-INF/mods.toml") { | ||
expand "version": project.version, | ||
"mcversion": rootProject.minecraft_version, | ||
"forgemajor": forgeMajor | ||
} | ||
} | ||
|
||
shadowJar { | ||
exclude "fabric.mod.json" | ||
exclude "architectury.common.json" | ||
|
||
configurations = [project.configurations.shadowCommon] | ||
setArchiveClassifier("dev-shadow") | ||
} | ||
|
||
remapJar { | ||
input.set shadowJar.archiveFile | ||
dependsOn shadowJar | ||
archiveBaseName.set "${rootProject.archives_base_name}-${project.name}" | ||
setArchiveClassifier(null) | ||
atAccessWideners.add('dsp.accesswidener') | ||
} | ||
|
||
jar { | ||
setArchiveClassifier("dev") | ||
} | ||
|
||
sourcesJar { | ||
def commonSources = project(":common").sourcesJar | ||
dependsOn commonSources | ||
from commonSources.archiveFile.map { zipTree(it) } | ||
} | ||
|
||
components.java { | ||
withVariantsFromConfiguration(project.configurations.shadowRuntimeElements) { | ||
skip() | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenNeoForge(MavenPublication) { | ||
artifactId = rootProject.archives_base_name + "-" + project.name | ||
from components.java | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
loom.platform=neoforge |
11 changes: 11 additions & 0 deletions
11
neoforge/src/main/java/dev/nanite/dsp/neoforge/DSPExpectedPlatformImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package dev.nanite.dsp.neoforge; | ||
|
||
import net.neoforged.fml.loading.FMLPaths; | ||
|
||
import java.nio.file.Path; | ||
|
||
public class DSPExpectedPlatformImpl { | ||
public static Path getGameDir() { | ||
return FMLPaths.GAMEDIR.get(); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
neoforge/src/main/java/dev/nanite/dsp/neoforge/DSPModNeoforge.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package dev.nanite.dsp.neoforge; | ||
|
||
import dev.nanite.dsp.DSPMod; | ||
import net.neoforged.fml.common.Mod; | ||
|
||
@Mod(DSPMod.MOD_ID) | ||
public class DSPModNeoforge { | ||
public DSPModNeoforge() { | ||
DSPMod.init(); | ||
} | ||
} |
Oops, something went wrong.