File tree 3 files changed +46
-2
lines changed
3 files changed +46
-2
lines changed Original file line number Diff line number Diff line change
1
+ plugins {
2
+ id(" java-platform" )
3
+ }
4
+
5
+ apply from : " $rootDir /gradle/publish.gradle"
6
+
7
+ description = " OpenTelemetry Instrumentation Bill of Materials (Alpha)"
8
+ group = " io.opentelemetry.instrumentation"
9
+ archivesBaseName = " opentelemetry-instrumentation-bom-alpha"
10
+
11
+ rootProject. subprojects. forEach { subproject ->
12
+ if (! project. name. startsWith(" bom" )) {
13
+ evaluationDependsOn(subproject. path)
14
+ }
15
+ }
16
+
17
+ javaPlatform {
18
+ allowDependencies()
19
+ }
20
+
21
+ dependencies {
22
+ api(platform(" io.opentelemetry:opentelemetry-bom:${ versions.opentelemetry} " ))
23
+ api(platform(" io.opentelemetry:opentelemetry-bom-alpha:${ versions.opentelemetryAlpha} " ))
24
+ }
25
+
26
+ afterEvaluate {
27
+ dependencies {
28
+ constraints {
29
+ rootProject. subprojects. sort { " $it . archivesBaseName " }
30
+ .collect { it }
31
+ .findAll { it. name != project. name && it. name != ' javaagent' }
32
+ .forEach { project ->
33
+ project. plugins. withId(" maven-publish" ) {
34
+ api(project)
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
Original file line number Diff line number Diff line change @@ -23,7 +23,12 @@ publishing {
23
23
artifact sourcesJar
24
24
artifact javadocJar
25
25
} else {
26
- from components. java
26
+ project. plugins. withId(" java-platform" ) {
27
+ from(components[" javaPlatform" ])
28
+ }
29
+ project. plugins. withId(" java-library" ) {
30
+ from components. java
31
+ }
27
32
}
28
33
29
34
def stable = findProperty(" otel.stable" ) ?: false
@@ -47,7 +52,6 @@ publishing {
47
52
48
53
pom {
49
54
name = ' OpenTelemetry Instrumentation for Java'
50
- packaging = ' jar'
51
55
url = ' https://github.com/open-telemetry/opentelemetry-java-instrumentation'
52
56
53
57
licenses {
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ include ':javaagent-tooling'
40
40
include ' :javaagent'
41
41
include ' :load-generator'
42
42
43
+ include ' :bom-alpha'
43
44
include ' :instrumentation-api'
44
45
include ' :javaagent-api'
45
46
You can’t perform that action at this time.
0 commit comments