mirror of
https://github.com/GeyserMC/Floodgate.git
synced 2025-12-19 14:59:20 +00:00
Publish the local linking databases
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
plugins {
|
||||||
|
id("floodgate.shadow-conventions")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
shadowJar {
|
||||||
|
archiveBaseName.set(archiveBaseName.get() + "-database")
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
plugins {
|
|
||||||
id("floodgate.base-conventions")
|
|
||||||
}
|
|
||||||
|
|
||||||
publishing {
|
|
||||||
publications.named<MavenPublication>("mavenJava") {
|
|
||||||
from(components["java"])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -28,14 +28,17 @@ subprojects {
|
|||||||
plugin("floodgate.build-logic")
|
plugin("floodgate.build-logic")
|
||||||
}
|
}
|
||||||
|
|
||||||
if (project.projectDir.startsWith("database/")) {
|
val relativePath = projectDir.relativeTo(rootProject.projectDir).path
|
||||||
group = rootProject.group as String + ".database"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if (relativePath.startsWith("database" + File.separator)) {
|
||||||
|
group = rootProject.group as String + ".database"
|
||||||
|
plugins.apply("floodgate.database-conventions")
|
||||||
|
} else {
|
||||||
when (this) {
|
when (this) {
|
||||||
in platforms -> plugins.apply("floodgate.shadow-conventions")
|
in platforms -> plugins.apply("floodgate.shadow-conventions")
|
||||||
api -> plugins.apply("floodgate.base-conventions")
|
api -> plugins.apply("floodgate.shadow-conventions")
|
||||||
else -> plugins.apply("floodgate.standard-conventions")
|
else -> plugins.apply("floodgate.base-conventions")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|||||||
Reference in New Issue
Block a user