decommission the deprecated Gradle archivesBaseName property (#3878)

This commit is contained in:
Eugene R 2021-11-15 20:55:08 +02:00 committed by GitHub
parent 0ede1316bc
commit f24ee19d0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 19 additions and 19 deletions

View File

@ -8,7 +8,7 @@ plugins {
description = "OpenTelemetry API"
otelJava.moduleName.set("io.opentelemetry.api")
base.archivesBaseName = "opentelemetry-api"
base.archivesName.set("opentelemetry-api")
dependencies {
api(project(":context"))

View File

@ -3,8 +3,8 @@ subprojects {
group = "io.opentelemetry.api"
val proj = this
plugins.withId("java") {
configure<BasePluginConvention> {
archivesBaseName = "opentelemetry-api-${proj.name}"
configure<BasePluginExtension> {
archivesName.set("opentelemetry-api-${proj.name}")
}
}
}

View File

@ -4,6 +4,6 @@ plugins {
description = "OpenTelemetry Bill of Materials (Alpha)"
group = "io.opentelemetry"
base.archivesBaseName = "opentelemetry-bom-alpha"
base.archivesName.set("opentelemetry-bom-alpha")
otelBom.projectFilter.set { it.findProperty("otel.release") == "alpha" }

View File

@ -4,6 +4,6 @@ plugins {
description = "OpenTelemetry Bill of Materials"
group = "io.opentelemetry"
base.archivesBaseName = "opentelemetry-bom"
base.archivesName.set("opentelemetry-bom")
otelBom.projectFilter.set { !it.hasProperty("otel.release") }

View File

@ -33,7 +33,7 @@ rootProject.tasks.named(generateBuildSubstitutions.name) {
afterEvaluate {
otelBom.projectFilter.finalizeValue()
val bomProjects = rootProject.subprojects
.sortedBy { it.findProperty("archivesBaseName") as String? }
.sortedBy { it.findProperty("archivesName") as String? }
.filter { !it.name.startsWith("bom") }
.filter(otelBom.projectFilter.get()::test)
.filter { it.plugins.hasPlugin("maven-publish") }

View File

@ -3,8 +3,8 @@ subprojects {
group = "io.opentelemetry.exporters"
val proj = this
plugins.withId("java") {
configure<BasePluginConvention> {
archivesBaseName = "opentelemetry-exporter-${proj.name}"
configure<BasePluginExtension> {
archivesName.set("opentelemetry-exporter-${proj.name}")
}
}
}

View File

@ -3,8 +3,8 @@ subprojects {
group = "io.opentelemetry.exporter.otlp.http"
val proj = this
plugins.withId("java") {
configure<BasePluginConvention> {
archivesBaseName = "opentelemetry-exporter-otlp-http-${proj.name}"
configure<BasePluginExtension> {
archivesName.set("opentelemetry-exporter-otlp-http-${proj.name}")
}
}
}

View File

@ -8,7 +8,7 @@ plugins {
description = "OpenTelemetry Protocol Exporters"
otelJava.moduleName.set("io.opentelemetry.exporter.otlp")
base.archivesBaseName = "opentelemetry-exporter-otlp"
base.archivesName.set("opentelemetry-exporter-otlp")
dependencies {
api(project(":exporters:otlp:trace"))

View File

@ -3,8 +3,8 @@ subprojects {
group = "io.opentelemetry.exporter.otlp"
val proj = this
plugins.withId("java") {
configure<BasePluginConvention> {
archivesBaseName = "opentelemetry-exporter-otlp-${proj.name}"
configure<BasePluginExtension> {
archivesName.set("opentelemetry-exporter-otlp-${proj.name}")
}
}
}

View File

@ -1,8 +1,8 @@
subprojects {
val proj = this
plugins.withId("java") {
configure<BasePluginConvention> {
archivesBaseName = "opentelemetry-extension-${proj.name}"
configure<BasePluginExtension> {
archivesName.set("opentelemetry-extension-${proj.name}")
}
}
}

View File

@ -1,8 +1,8 @@
subprojects {
val proj = this
plugins.withId("java") {
configure<BasePluginConvention> {
archivesBaseName = "opentelemetry-sdk-extension-${proj.name}"
configure<BasePluginExtension> {
archivesName.set("opentelemetry-sdk-extension-${proj.name}")
}
}
}

View File

@ -3,8 +3,8 @@ subprojects {
group = "io.opentelemetry.sdk"
val proj = this
plugins.withId("java") {
configure<BasePluginConvention> {
archivesBaseName = "opentelemetry-sdk-${proj.name}"
configure<BasePluginExtension> {
archivesName.set("opentelemetry-sdk-${proj.name}")
}
}
}