Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions all/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.gradle.api.JavaVersion

plugins {
id("otel.java-conventions")
}
Expand All @@ -6,6 +8,7 @@ description = "OpenTelemetry All"
otelJava.moduleName.set("io.opentelemetry.all")
otelJava.requireSuppressWarningsExplanation.set(false)
otelJava.osgiEnabled.set(false)
otelJava.minJavaVersionSupported.set(JavaVersion.VERSION_25)

// Skip ossIndexAudit on test module
tasks.named("ossIndexAudit") {
Expand Down Expand Up @@ -36,10 +39,6 @@ dependencies {
}

testImplementation("com.tngtech.archunit:archunit-junit5")
// NullGuardsTest uses ASM for method-body bytecode scanning. Once the Gradle build toolchain
// bumps to JDK 24+, we can migrate to the built-in java.lang.classfile API and drop these deps.
testImplementation("org.ow2.asm:asm")
testImplementation("org.ow2.asm:asm-tree")
}

// Custom task type for writing artifacts and jars - configuration cache compatible
Expand Down Expand Up @@ -77,16 +76,7 @@ val writeArtifactsAndJars = tasks.register<WriteArtifactsAndJars>("writeArtifact
}

tasks {
// This module depends on all published subprojects (for JaCoCo coverage aggregation and
// arch tests). Since :exporters:http-sender:jdk targets Java 11, the compiler needs
// release 11 to resolve its classes on the classpath.
withType(JavaCompile::class) {
options.release.set(11)
}

val testJavaVersion = project.findProperty("testJavaVersion") as String?
test {
enabled = testJavaVersion != "8"
dependsOn(writeArtifactsAndJars)
environment("ARTIFACTS_AND_JARS", artifactsAndJarsFile.get().asFile.absolutePath)
}
Expand Down
Loading
Loading