Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredlll08 committed Dec 23, 2023
1 parent 6e6e62d commit 3b3cb7e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ class DefaultPlugin : Plugin<Project> {
}
}

@Suppress("UnstableApiUsage")
withType<ProcessResources> {
val properties = mapOf(
"version" to project.version,
Expand Down
2 changes: 1 addition & 1 deletion fabric/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ tasks.create<TaskPublishCurseForge>("publishCurseForge") {
dependsOn(tasks.remapJar)
apiToken = GMUtils.locateProperty(project, "curseforgeApiToken")

val mainFile = upload(Properties.CURSE_PROJECT_ID, file("${project.layout.buildDirectory}/libs/${base.archivesName.get()}-$version.jar"))
val mainFile = upload(Properties.CURSE_PROJECT_ID, tasks.remapJar.get().archiveFile)
mainFile.changelogType = "markdown"
mainFile.changelog = GMUtils.smallChangelog(project, Properties.GIT_REPO)
mainFile.releaseType = CFG_Constants.RELEASE_TYPE_RELEASE
Expand Down
2 changes: 1 addition & 1 deletion forge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ tasks.create<TaskPublishCurseForge>("publishCurseForge") {
dependsOn(tasks.jar)
apiToken = GMUtils.locateProperty(project, "curseforgeApiToken") ?: 0

val mainFile = upload(Properties.CURSE_PROJECT_ID, file("${project.layout.buildDirectory}/libs/${base.archivesName.get()}-$version.jar"))
val mainFile = upload(Properties.CURSE_PROJECT_ID, tasks.jar.get().archiveFile)
mainFile.changelogType = "markdown"
mainFile.changelog = GMUtils.smallChangelog(project, Properties.GIT_REPO)
mainFile.releaseType = CFG_Constants.RELEASE_TYPE_RELEASE
Expand Down
2 changes: 1 addition & 1 deletion neoforge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ tasks.create<TaskPublishCurseForge>("publishCurseForge") {
dependsOn(tasks.jar)
apiToken = GMUtils.locateProperty(project, "curseforgeApiToken") ?: 0

val mainFile = upload(Properties.CURSE_PROJECT_ID, file("${project.layout.buildDirectory}/libs/${base.archivesName.get()}-$version.jar"))
val mainFile = upload(Properties.CURSE_PROJECT_ID, tasks.jar.get().archiveFile)
mainFile.changelogType = "markdown"
mainFile.changelog = GMUtils.smallChangelog(project, Properties.GIT_REPO)
mainFile.releaseType = Constants.RELEASE_TYPE_RELEASE
Expand Down

0 comments on commit 3b3cb7e

Please sign in to comment.