We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b0bcd8 commit f90245aCopy full SHA for f90245a
buildSrc/src/main/kotlin/io/opentelemetry/gradle/OtelVersionClassPlugin.kt
@@ -33,15 +33,9 @@ class OtelVersionClassPlugin : Plugin<Project> {
33
outputDirectory.set(outDir)
34
}
35
// Add dependency on this task
36
- project.tasks.getByName("compileJava") {
+ project.tasks.matching { it.name == "compileJava" || it.name == "sourcesJar" }.configureEach {
37
dependsOn("generateOtelVersionClass")
38
39
- // sourcesJar also needs to depend on this task
40
- project.tasks.configureEach {
41
- if (name == "sourcesJar") {
42
- dependsOn("generateOtelVersionClass")
43
- }
44
45
// Add new source dir to the "main" source set
46
val java = project.the<JavaPluginExtension>()
47
java.sourceSets.getByName("main").java {
0 commit comments