mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Re-arrange groups and artefacts when publishing (#2899)
* Re-arrange groups and artefacts when publishing * Publish core jar
This commit is contained in:
parent
f2e606c0f3
commit
0163e33693
3 changed files with 14 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
||||||
dependencies {
|
dependencies {
|
||||||
api(projects.api)
|
api(projects.api)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications.named<MavenPublication>("mavenJava") {
|
||||||
|
groupId = rootProject.group as String + ".geyser"
|
||||||
|
artifactId = "api"
|
||||||
|
}
|
||||||
|
}
|
|
@ -36,7 +36,6 @@ subprojects {
|
||||||
val relativePath = projectDir.relativeTo(rootProject.projectDir).path
|
val relativePath = projectDir.relativeTo(rootProject.projectDir).path
|
||||||
|
|
||||||
if (relativePath.contains("api")) {
|
if (relativePath.contains("api")) {
|
||||||
group = rootProject.group as String + ".api"
|
|
||||||
plugins.apply("geyser.api-conventions")
|
plugins.apply("geyser.api-conventions")
|
||||||
} else {
|
} else {
|
||||||
group = rootProject.group as String + ".geyser"
|
group = rootProject.group as String + ".geyser"
|
||||||
|
|
|
@ -77,6 +77,13 @@ dependencies {
|
||||||
annotationProcessor(projects.ap)
|
annotationProcessor(projects.ap)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications.named<MavenPublication>("mavenJava") {
|
||||||
|
artifact(tasks["jar"])
|
||||||
|
artifact(tasks["sourcesJar"])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
configure<BlossomExtension> {
|
configure<BlossomExtension> {
|
||||||
val indra = the<IndraGitExtension>()
|
val indra = the<IndraGitExtension>()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue