Skip to content

Commit

Permalink
decommission the deprecated Gradle archivesBaseName property (#3878)
Browse files Browse the repository at this point in the history
  • Loading branch information
reugn authored Nov 15, 2021
1 parent 0ede131 commit f24ee19
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion api/all/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
4 changes: 2 additions & 2 deletions api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
}
}
}
2 changes: 1 addition & 1 deletion bom-alpha/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
2 changes: 1 addition & 1 deletion bom/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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") }
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/otel.bom-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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") }
Expand Down
4 changes: 2 additions & 2 deletions exporters/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
}
}
}
4 changes: 2 additions & 2 deletions exporters/otlp-http/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
}
}
}
2 changes: 1 addition & 1 deletion exporters/otlp/all/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
4 changes: 2 additions & 2 deletions exporters/otlp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
}
}
}
4 changes: 2 additions & 2 deletions extensions/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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}")
}
}
}
4 changes: 2 additions & 2 deletions sdk-extensions/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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}")
}
}
}
4 changes: 2 additions & 2 deletions sdk/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
}
}
}

0 comments on commit f24ee19

Please sign in to comment.