Skip to content

Commit

Permalink
Publish shaded common (#90)
Browse files Browse the repository at this point in the history
* publish shaded commons

* publish the dev jar too

---------

Co-authored-by: connorhartley <[email protected]>
  • Loading branch information
ItsNature and vectrixdevelops authored Jan 1, 2024
1 parent ea7f446 commit e622ea1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions build-logic/src/main/kotlin/extensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ fun Project.publishJar() {

fun Project.publishShadowJar() {
configurePublication {
artifact(tasks["jar"])
artifact(tasks["shadowJar"])
artifact(tasks["sourcesJar"])
}
Expand Down
2 changes: 1 addition & 1 deletion bukkit/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies {
compileOnly(libs.bukkit)

api(project(path = ":apollo-api", configuration = "shadow"))
api(project(":apollo-common"))
api(project(path = ":apollo-common", configuration = "shadow"))

"loaderCompileOnly"(libs.bukkit.api)
"loaderImplementation"(project(":extra:apollo-extra-loader"))
Expand Down
2 changes: 1 addition & 1 deletion bungee/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ setupDynamicDependency("adventure4", "shadowJarAdventure4", "adventure/4/", "dep

dependencies {
api(project(path = ":apollo-api", configuration = "shadow"))
api(project(":apollo-common"))
api(project(path = ":apollo-common", configuration = "shadow"))

"loaderCompileOnly"(libs.bungee)
"loaderImplementation"(project(":extra:apollo-extra-loader"))
Expand Down
3 changes: 2 additions & 1 deletion common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
plugins {
id("apollo.shadow-conventions")
id("apollo.publish-conventions")
}

Expand All @@ -13,4 +14,4 @@ dependencies {
api(libs.configurate.yaml)
}

publishJar()
publishShadowJar()
2 changes: 1 addition & 1 deletion velocity/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencies {
compileOnly(libs.velocity)

api(project(path = ":apollo-api", configuration = "shadow"))
api(project(":apollo-common"))
api(project(path = ":apollo-common", configuration = "shadow"))
api(project(":extra:apollo-extra-adventure4"))

annotationProcessor(libs.velocity)
Expand Down

0 comments on commit e622ea1

Please sign in to comment.