Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
Fix Publication Download Issues for Gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
gmitch215 committed Jun 19, 2023
1 parent 30c5bb2 commit 939c194
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
13 changes: 4 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,6 @@ subprojects {
targetCompatibility = jvmVersion
}

publishing {
publications {
getByName<MavenPublication>("maven") {
artifact(tasks["shadowJar"])
}
}
}

tasks {
compileJava {
options.encoding = "UTF-8"
Expand Down Expand Up @@ -156,8 +148,10 @@ subprojects {
}

jar.configure {
enabled = false
dependsOn("shadowJar")
artifacts {
add("default", getByName<ShadowJar>("shadowJar"))
}
}

withType<ShadowJar> {
Expand All @@ -174,6 +168,7 @@ subprojects {
relocate("org.bstats", "me.gamercoder215.shaded.bstats")
relocate("com.jeff_media.updatechecker", "me.gamercoder215.shaded.updatechecker")

archiveFileName.set("${project.name}-${project.version}.jar")
archiveClassifier.set("")
}
}
Expand Down
2 changes: 1 addition & 1 deletion plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ tasks {
"1_19_R2",
"1_19_R3",
"1_20_R1"
).forEach { dependsOn(project(":starcosmetics-$it").tasks["remap"]) }
).forEach { dependsOn(project(":starcosmetics-$it").tasks["jar"]) }
}

register("sourcesJar", Jar::class.java) {
Expand Down

0 comments on commit 939c194

Please sign in to comment.