File tree Expand file tree Collapse file tree 3 files changed +51
-3
lines changed
Expand file tree Collapse file tree 3 files changed +51
-3
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,27 @@ plugins {
99description = " OpenTelemetry Log SDK"
1010otelJava.moduleName.set(" io.opentelemetry.sdk.logs" )
1111
12+ sourceSets {
13+ create(" incubating" )
14+ }
15+
16+ java {
17+ registerFeature(" incubating" ) {
18+ usingSourceSet(sourceSets[" incubating" ])
19+ }
20+ }
21+
22+ val incubatingImplementation by configurations.existing
23+
24+ val compileOnly by configurations.existing {
25+ extendsFrom(incubatingImplementation.get())
26+ }
27+
1228dependencies {
1329 api(project(" :api:all" ))
1430 api(project(" :sdk:common" ))
15- compileOnly(project(" :api:incubator" ))
31+
32+ incubatingImplementation(project(" :api:incubator" ))
1633
1734 annotationProcessor(" com.google.auto.value:auto-value" )
1835
Original file line number Diff line number Diff line change @@ -12,10 +12,27 @@ plugins {
1212description = " OpenTelemetry SDK Metrics"
1313otelJava.moduleName.set(" io.opentelemetry.sdk.metrics" )
1414
15+ sourceSets {
16+ create(" incubating" )
17+ }
18+
19+ java {
20+ registerFeature(" incubating" ) {
21+ usingSourceSet(sourceSets[" incubating" ])
22+ }
23+ }
24+
25+ val incubatingImplementation by configurations.existing
26+
27+ val compileOnly by configurations.existing {
28+ extendsFrom(incubatingImplementation.get())
29+ }
30+
1531dependencies {
1632 api(project(" :api:all" ))
1733 api(project(" :sdk:common" ))
18- compileOnly(project(" :api:incubator" ))
34+
35+ incubatingImplementation(project(" :api:incubator" ))
1936
2037 compileOnly(" org.codehaus.mojo:animal-sniffer-annotations" )
2138
Original file line number Diff line number Diff line change @@ -16,13 +16,27 @@ sourceSets {
1616 val traceShadedDeps = project(" :sdk:trace-shaded-deps" )
1717 output.dir(traceShadedDeps.file(" build/extracted/shadow" ), " builtBy" to " :sdk:trace-shaded-deps:extractShadowJar" )
1818 }
19+ create(" incubating" )
20+ }
21+
22+ java {
23+ registerFeature(" incubating" ) {
24+ usingSourceSet(sourceSets[" incubating" ])
25+ }
26+ }
27+
28+ val incubatingImplementation by configurations.existing
29+
30+ val compileOnly by configurations.existing {
31+ extendsFrom(incubatingImplementation.get())
1932}
2033
2134dependencies {
2235 api(project(" :api:all" ))
2336 api(project(" :sdk:common" ))
2437
25- compileOnly(project(" :api:incubator" ))
38+ incubatingImplementation(project(" :api:incubator" ))
39+
2640 compileOnly(project(" :sdk:trace-shaded-deps" ))
2741
2842 annotationProcessor(" com.google.auto.value:auto-value" )
You can’t perform that action at this time.
0 commit comments