Re-arrange groups and artefacts when publishing (#2899)

* Re-arrange groups and artefacts when publishing

* Publish core jar
This commit is contained in:
rtm516 2022-04-24 18:02:02 +01:00 committed by GitHub
parent f2e606c0f3
commit 0163e33693
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 1 deletions

View file

@ -1,3 +1,10 @@
dependencies {
api(projects.api)
}
publishing {
publications.named<MavenPublication>("mavenJava") {
groupId = rootProject.group as String + ".geyser"
artifactId = "api"
}
}

View file

@ -36,7 +36,6 @@ subprojects {
val relativePath = projectDir.relativeTo(rootProject.projectDir).path
if (relativePath.contains("api")) {
group = rootProject.group as String + ".api"
plugins.apply("geyser.api-conventions")
} else {
group = rootProject.group as String + ".geyser"

View file

@ -77,6 +77,13 @@ dependencies {
annotationProcessor(projects.ap)
}
publishing {
publications.named<MavenPublication>("mavenJava") {
artifact(tasks["jar"])
artifact(tasks["sourcesJar"])
}
}
configure<BlossomExtension> {
val indra = the<IndraGitExtension>()