Skip to content

Commit d26c1f6

Browse files
authored
Fix gradle deprecation warnings (#12864)
1 parent 9cf0973 commit d26c1f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bom-alpha/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies {
1616
api(platform(project(":bom")))
1717

1818
// Get the semconv version from :dependencyManagement
19-
val semconvConstraint = project(":dependencyManagement").dependencyProject.configurations["api"].allDependencyConstraints
19+
val semconvConstraint = project.project(project(":dependencyManagement").path).configurations["api"].allDependencyConstraints
2020
.find { it.group.equals("io.opentelemetry.semconv")
2121
&& it.name.equals("opentelemetry-semconv") }
2222
?: throw Exception("semconv constraint not found")

custom-checks/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ tasks.withType<Javadoc>().configureEach {
7373
configurations {
7474
named("errorprone") {
7575
dependencies.removeIf {
76-
it is ProjectDependency && it.dependencyProject == project
76+
it is ProjectDependency && it.group == project.group && it.name == project.name
7777
}
7878
}
7979
}

0 commit comments

Comments
 (0)