Skip to content

Commit

Permalink
test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
gigabit101 committed Dec 19, 2023
1 parent eb2bee1 commit 874065e
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,36 @@ remapJar {
archiveClassifier = "forge"
}

task renameJarForPublication(type: Zip, dependsOn: remapJar) {
from remapJar.archiveFile.map { zipTree(it) }
archiveExtension = "jar"
metadataCharset "UTF-8"
destinationDirectory = base.libsDirectory
archiveClassifier = project.name
}

assemble.dependsOn renameJarForPublication

unifiedPublishing {
project {
displayName = "$project.mod_id-forge-$project.minecraft_version-$project.version"
displayName = "$rootProject.mod_id-forge-$rootProject.minecraft_version-$rootProject.mod_version"
releaseType = "$rootProject.artifact_type"
changelog = ""
gameVersions = ["1.20.2"]
gameVersions = []
gameLoaders = ["forge"]
// mainPublication renameJarForPublication
mainPublication renameJarForPublication
relations {
depends {
curseforge = "architectury-api"
}
}

var CURSE_API_KEY = project.findProperty("CURSE_API_KEY") ?: System.getenv("CURSE_API_KEY")
if (CURSE_API_KEY != null) {
curseforge {
token = CURSE_API_KEY
id = rootProject.curseforge_id
gameVersions.addAll "Java 17", "1.20.2"
gameVersions.addAll rootProject.minecraft_version
}
}
}
Expand Down

0 comments on commit 874065e

Please sign in to comment.