mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-23 22:30:47 +08:00
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)
|
||
|
}
|
||
|
}
|
||
|
}
|