mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 18:00:33 +08:00
8bd3d94537
* Introduce `mirai-bom` for dependency management * Update docs on `mirai-bom` * Remove unnecessary `mirai-bom:publish` in workflow Co-authored-by: ArcticLampyrid <arcticlampyrid@outlook.com>
39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
plugins {
|
|
`java-platform`
|
|
`maven-publish`
|
|
}
|
|
|
|
description = "Mirai BOM"
|
|
|
|
rootProject.subprojects
|
|
.filter { it.path != project.path }
|
|
.forEach { project.evaluationDependsOn(it.path) }
|
|
|
|
dependencies {
|
|
constraints {
|
|
rootProject.subprojects
|
|
.filter { it.path != project.path }
|
|
.filter { it.extensions.findByName("publishing") != null }
|
|
.forEach { subProject ->
|
|
subProject.publishing.publications
|
|
.withType<MavenPublication>()
|
|
.forEach {
|
|
this@constraints.api("${it.groupId}:${it.artifactId}:${it.version}")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
create<MavenPublication>("myPlatform") {
|
|
groupId = rootProject.group.toString()
|
|
artifactId = "mirai-bom"
|
|
version = Versions.project
|
|
from(components["javaPlatform"])
|
|
setupPom(project)
|
|
configGpgSign(project)
|
|
}
|
|
}
|
|
}
|