Skip to content
This repository has been archived by the owner on May 27, 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
+ Downgrade SonarQube
  • Loading branch information
gmitch215 committed Jun 19, 2023
1 parent 8fe5c76 commit a3dbaf4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
16 changes: 5 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

plugins {
id("org.sonarqube") version "4.2.0.3129"
id("org.sonarqube") version "4.0.0.2929"
id("com.github.johnrengelman.shadow") version "8.1.1" apply false

java
Expand Down Expand Up @@ -110,14 +110,6 @@ subprojects {
targetCompatibility = jvmVersion
}

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

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

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

withType<ShadowJar> {
manifest {
attributes(
Expand All @@ -172,6 +165,7 @@ subprojects {
relocate("org.bstats", "us.teaminceptus.shaded.bstats")
relocate("com.jeff_media.updatechecker", "us.teaminceptus.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 @@ -66,7 +66,7 @@ tasks {
"1_19_R2",
"1_19_R3",
"1_20_R1"
).forEach { dependsOn(":novaconomy-$it:remap") }
).forEach { dependsOn(":novaconomy-$it:jar") }
}

withType<ProcessResources> {
Expand Down

0 comments on commit a3dbaf4

Please sign in to comment.