Skip to content

Commit

Permalink
Resolve some Gradle warnings (#4234)
Browse files Browse the repository at this point in the history
* Resolve some Gradle warnings

* spotless
  • Loading branch information
iNikem committed Sep 29, 2021
1 parent 4392607 commit 5e6bc60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@ plugins {
`java-library`
}

afterEvaluate {
configurations.configureEach {
if (isCanBeResolved && !isCanBeConsumed) {
// TODO(anuraaga): Read version from properties file embedded by build.
project.dependencies.add(name, project.dependencies.platform("io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:1.3.1-alpha"))
}
}
}

/**
* We define three dependency configurations to use when adding dependencies to libraries being
* instrumented.
Expand Down
6 changes: 6 additions & 0 deletions instrumentation-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ dependencies {
testImplementation("io.opentelemetry:opentelemetry-sdk-metrics")
testImplementation("io.opentelemetry:opentelemetry-sdk-testing")
}

tasks {
sourcesJar {
dependsOn("generateJflex")
}
}

0 comments on commit 5e6bc60

Please sign in to comment.