Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1.21-neoforge-rushed' into 1.21-…
Browse files Browse the repository at this point in the history
…neoforge-rushed
  • Loading branch information
3TUSK committed Sep 2, 2024
2 parents 90dcc45 + 0c25f24 commit 5995e95
Show file tree
Hide file tree
Showing 919 changed files with 390 additions and 369 deletions.
42 changes: 24 additions & 18 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
id 'idea'
id 'maven-publish'
id 'net.neoforged.moddev' version '2.0.16-beta'
id "me.shedaniel.unified-publishing" version "0.1.+"
}

tasks.named('wrapper', Wrapper).configure {
Expand Down Expand Up @@ -75,6 +76,7 @@ neoForge {
runs {
client {
client()
ideName = "Run ${project.mod_id} - Client"
gameDirectory = project.file('run_client')
// property 'production', 'true'
systemProperty 'forge.logging.console.level', 'debug'
Expand Down Expand Up @@ -108,6 +110,7 @@ neoForge {

server {
server()
ideName = "Run ${project.mod_id} - Server"
gameDirectory = project.file('run_server')
// property 'production', 'true'
systemProperty 'forge.logging.console.level', 'debug'
Expand All @@ -122,6 +125,7 @@ neoForge {

data {
data()
ideName = "Run ${project.mod_id} - Data"
gameDirectory = project.file('run_data')
// property 'production', 'true'
systemProperty 'forge.logging.console.level', 'debug'
Expand Down Expand Up @@ -239,17 +243,22 @@ processResources {
}
}

tasks.jarJar.configure {
// TODO[3TUSK]: I don't know if it is possible to exclude these?
//exclude("/assets/${project.mod_id}/lang/en_us.existing.json")
//exclude("/assets/test")
//exclude("/org/teacon/xkdeco/data")
//exclude("/org/teacon/xkdeco/mixin/data")
//exclude("/.cache")
//exclude("/xkdeco.data.mixins.json")
}

jar {
exclude("/assets/${project.mod_id}/lang/en_us.existing.json")
exclude("/assets/test")
exclude("/org/teacon/xkdeco/data")
exclude("/org/teacon/xkdeco/mixin/data")
exclude("/.cache")
exclude("/xkdeco.data.mixins.json")

manifest {
attributes(["Specification-Title" : mod_id,
"Specification-Version" : "1", // We are version 1 of ourselves
"Implementation-Title" : project.name,
"Implementation-Version" : realVersion,
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")])
}

preserveFileTimestamps = false
reproducibleFileOrder = true
}
Expand Down Expand Up @@ -310,18 +319,16 @@ tasks.register("githubActionOutput", TeaConDumpPathToGitHub) { task ->
task.getTargetFile().set(jar.archiveFile)
}

// TODO We will come back later for publication on CurseForge / Modrinth.
/*
unifiedPublishing {
project {
displayName = "[Forge $project.supported_version] $project.mod_version"
displayName = "[NeoForge $project.supported_version] $project.mod_version"
version = realVersion // Optional, Inferred from project by default
changelog = file("CHANGELOG.md").exists() ? file("CHANGELOG.md").text : ""
releaseType = project.release_type // Optional, use "release", "beta" or "alpha"
gameVersions = ["1.20.1"]
gameLoaders = ["forge", "neoforge"]
gameVersions = [project.minecraft_version]
gameLoaders = ["neoforge"]

mainPublication tasks.jarJar // Declares the publicated jar
mainPublication tasks.jar //TODO test

if (System.getenv("CURSE_TOKEN") != null) {
curseforge {
Expand All @@ -334,7 +341,7 @@ unifiedPublishing {
}
}

if (System.getenv("CURSE_TOKEN") != null) {
if (System.getenv("MODRINTH_TOKEN") != null) {
modrinth {
token = System.getenv("MODRINTH_TOKEN")
id = "XlwMlNhH" // Required, must be a string, ID of Modrinth project
Expand All @@ -346,4 +353,3 @@ unifiedPublishing {
}
}
}
*/
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ loader_version_range=[4,)
# Mod Properties
mod_version=0.8.2
release_type=release
supported_version=1.21.1
remote_repo=teaconmc/XKDeco
mod_id=xkdeco
mod_base_package=org.teacon.xkdeco
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.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 5995e95

Please sign in to comment.