Skip to content
Closed
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
19 changes: 18 additions & 1 deletion sdk/logs/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,27 @@ plugins {
description = "OpenTelemetry Log SDK"
otelJava.moduleName.set("io.opentelemetry.sdk.logs")

sourceSets {
create("incubating")
}

java {
registerFeature("incubating") {
usingSourceSet(sourceSets["incubating"])
}
}

val incubatingImplementation by configurations.existing

val compileOnly by configurations.existing {
extendsFrom(incubatingImplementation.get())
}

dependencies {
api(project(":api:all"))
api(project(":sdk:common"))
compileOnly(project(":api:incubator"))

incubatingImplementation(project(":api:incubator"))

annotationProcessor("com.google.auto.value:auto-value")

Expand Down
19 changes: 18 additions & 1 deletion sdk/metrics/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,27 @@ plugins {
description = "OpenTelemetry SDK Metrics"
otelJava.moduleName.set("io.opentelemetry.sdk.metrics")

sourceSets {
create("incubating")
}

java {
registerFeature("incubating") {
usingSourceSet(sourceSets["incubating"])
}
}

val incubatingImplementation by configurations.existing

val compileOnly by configurations.existing {
extendsFrom(incubatingImplementation.get())
}

dependencies {
api(project(":api:all"))
api(project(":sdk:common"))
compileOnly(project(":api:incubator"))

incubatingImplementation(project(":api:incubator"))

compileOnly("org.codehaus.mojo:animal-sniffer-annotations")

Expand Down
16 changes: 15 additions & 1 deletion sdk/trace/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,27 @@ sourceSets {
val traceShadedDeps = project(":sdk:trace-shaded-deps")
output.dir(traceShadedDeps.file("build/extracted/shadow"), "builtBy" to ":sdk:trace-shaded-deps:extractShadowJar")
}
create("incubating")
}

java {
registerFeature("incubating") {
usingSourceSet(sourceSets["incubating"])
}
}

val incubatingImplementation by configurations.existing

val compileOnly by configurations.existing {
extendsFrom(incubatingImplementation.get())
}

dependencies {
api(project(":api:all"))
api(project(":sdk:common"))

compileOnly(project(":api:incubator"))
incubatingImplementation(project(":api:incubator"))

compileOnly(project(":sdk:trace-shaded-deps"))

annotationProcessor("com.google.auto.value:auto-value")
Expand Down
Loading