Skip to content

Commit

Permalink
fix publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
isXander committed Sep 28, 2023
1 parent 12c2911 commit 79d00bb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ if (modrinthId.isNotEmpty()) {
changelog.set(changelogText)
syncBodyFrom.set(file("README.md").readText())
}

tasks.getByName("modrinth") {
dependsOn("optimizeOutputsOfRemapJar")
}
}

val curseforgeId: String by project
Expand Down Expand Up @@ -150,6 +154,10 @@ githubRelease {
targetCommitish("1.20.x/dev")
body(changelogText)
releaseAssets(tasks["remapJar"].outputs.files)

tasks.getByName("githubRelease") {
dependsOn("optimizeOutputsOfRemapJar")
}
}

publishing {
Expand All @@ -159,6 +167,8 @@ publishing {
artifactId = "adaptive-tooltips"

from(components["java"])

tasks["generateMetadataFileForModPublication"].dependsOn("optimizeOutputsOfRemapJar")
}
}

Expand Down

0 comments on commit 79d00bb

Please sign in to comment.