Skip to content

Commit a1ed255

Browse files
brcolowanuraaga
andauthored
Add Automatic-Module-Name to jar manifest. Fixes #292. (#295)
* Add Automatic-Module-Name to jar manifest. Fixes #292. * Update aws-xray-recorder-sdk-sql/build.gradle.kts Co-authored-by: Anuraag Agrawal <[email protected]>
1 parent 5143932 commit a1ed255

File tree

15 files changed

+88
-0
lines changed

15 files changed

+88
-0
lines changed

aws-xray-recorder-sdk-apache-http/build.gradle.kts

+6
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,10 @@ dependencies {
1111
testImplementation("com.github.tomakehurst:wiremock-jre8")
1212
}
1313

14+
tasks.jar {
15+
manifest {
16+
attributes("Automatic-Module-Name" to "com.amazonaws.xray.apache-http")
17+
}
18+
}
19+
1420
description = "AWS X-Ray Recorder SDK for Java - Apache HTTP Client Proxy"

aws-xray-recorder-sdk-aws-sdk-core/build.gradle.kts

+6
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,10 @@ dependencies {
99
testImplementation("com.fasterxml.jackson.core:jackson-databind")
1010
}
1111

12+
tasks.jar {
13+
manifest {
14+
attributes("Automatic-Module-Name" to "com.amazonaws.xray.aws-sdk-core")
15+
}
16+
}
17+
1218
description = "AWS X-Ray Recorder SDK for Java - AWS SDK Core"

aws-xray-recorder-sdk-aws-sdk-instrumentor/build.gradle.kts

+6
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,10 @@ dependencies {
77
implementation(project(":aws-xray-recorder-sdk-aws-sdk"))
88
}
99

10+
tasks.jar {
11+
manifest {
12+
attributes("Automatic-Module-Name" to "com.amazonaws.xray.aws-sdk-instrumentor")
13+
}
14+
}
15+
1016
description = "AWS X-Ray Recorder SDK for Java - AWS SDK Instrumentor"

aws-xray-recorder-sdk-aws-sdk-v2-instrumentor/build.gradle.kts

+6
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,10 @@ dependencies {
77
implementation(project(":aws-xray-recorder-sdk-aws-sdk-v2"))
88
}
99

10+
tasks.jar {
11+
manifest {
12+
attributes("Automatic-Module-Name" to "com.amazonaws.xray.aws-sdk-v2-instrumentor")
13+
}
14+
}
15+
1016
description = "AWS X-Ray Recorder SDK for Java - AWS SDK V2 Instrumentor"

aws-xray-recorder-sdk-aws-sdk-v2/build.gradle.kts

+6
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,10 @@ dependencies {
1515
testImplementation("software.amazon.awssdk:lambda:2.15.20")
1616
}
1717

18+
tasks.jar {
19+
manifest {
20+
attributes("Automatic-Module-Name" to "com.amazonaws.xray.aws-sdk-v2")
21+
}
22+
}
23+
1824
description = "AWS X-Ray Recorder SDK for Java - AWS SDK V2"

aws-xray-recorder-sdk-aws-sdk/build.gradle.kts

+6
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,10 @@ dependencies {
1515
testImplementation("org.skyscreamer:jsonassert:1.3.0")
1616
}
1717

18+
tasks.jar {
19+
manifest {
20+
attributes("Automatic-Module-Name" to "com.amazonaws.xray.aws-sdk")
21+
}
22+
}
23+
1824
description = "AWS X-Ray Recorder SDK for Java - AWS SDK Handler"

aws-xray-recorder-sdk-benchmark/build.gradle.kts

+6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ dependencies {
2222
add("jmhRuntimeClasspath", platform(project(":dependencyManagement")))
2323
}
2424

25+
tasks.jar {
26+
manifest {
27+
attributes("Automatic-Module-Name" to "com.amazonaws.xray.benchmark")
28+
}
29+
}
30+
2531
jmh {
2632
fork = 1
2733
// Required when also including annotation processor.

aws-xray-recorder-sdk-core/build.gradle.kts

+6
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,10 @@ dependencies {
1818
testImplementation("org.skyscreamer:jsonassert:1.3.0")
1919
}
2020

21+
tasks.jar {
22+
manifest {
23+
attributes("Automatic-Module-Name" to "com.amazonaws.xray.sdk-core")
24+
}
25+
}
26+
2127
description = "AWS X-Ray Recorder SDK for Java - Core"

aws-xray-recorder-sdk-log4j/build.gradle.kts

+6
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,10 @@ dependencies {
1111
testImplementation("org.apache.logging.log4j:log4j-api:2.13.3")
1212
}
1313

14+
tasks.jar {
15+
manifest {
16+
attributes("Automatic-Module-Name" to "com.amazonaws.xray.log4j")
17+
}
18+
}
19+
1420
description = "AWS X-Ray Recorder SDK for Java – Log4J Trace ID Injection"

aws-xray-recorder-sdk-metrics/build.gradle.kts

+6
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,10 @@ dependencies {
1313
testImplementation("org.powermock:powermock-api-mockito2:2.0.2")
1414
}
1515

16+
tasks.jar {
17+
manifest {
18+
attributes("Automatic-Module-Name" to "com.amazonaws.xray.metrics")
19+
}
20+
}
21+
1622
description = "AWS X-Ray Recorder SDK for Java - Segment Metrics"

aws-xray-recorder-sdk-slf4j/build.gradle.kts

+6
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,10 @@ dependencies {
1111
testImplementation("ch.qos.logback:logback-classic:1.3.0-alpha5")
1212
}
1313

14+
tasks.jar {
15+
manifest {
16+
attributes("Automatic-Module-Name" to "com.amazonaws.xray.slf4j")
17+
}
18+
}
19+
1420
description = "AWS X-Ray Recorder SDK for Java - SLF4J Trace ID Injection"

aws-xray-recorder-sdk-spring/build.gradle.kts

+6
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,10 @@ dependencies {
1616
compileOnly("org.springframework.data:spring-data-commons:2.0.0.RELEASE")
1717
}
1818

19+
tasks.jar {
20+
manifest {
21+
attributes("Automatic-Module-Name" to "com.amazonaws.xray.spring")
22+
}
23+
}
24+
1925
description = "AWS X-Ray Recorder SDK for Java - Spring Framework Interceptors"

aws-xray-recorder-sdk-sql-mysql/build.gradle.kts

+5
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,9 @@ dependencies {
99
compileOnly("org.apache.tomcat:tomcat-jdbc:8.0.36")
1010
}
1111

12+
tasks.jar {
13+
manifest {
14+
attributes("Automatic-Module-Name" to "com.amazonaws.xray.sql-mysql")
15+
}
16+
}
1217
description = "AWS X-Ray Recorder SDK for Java - AWS SDK MySQL Interceptor"

aws-xray-recorder-sdk-sql-postgres/build.gradle.kts

+5
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,9 @@ dependencies {
99
compileOnly("org.apache.tomcat:tomcat-jdbc:8.0.36")
1010
}
1111

12+
tasks.jar {
13+
manifest {
14+
attributes("Automatic-Module-Name" to "com.amazonaws.xray.sql-postgres")
15+
}
16+
}
1217
description = "AWS X-Ray Recorder SDK for Java - AWS SDK PostgreSQL Interceptor"

aws-xray-recorder-sdk-sql/build.gradle.kts

+6
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,10 @@ dependencies {
88
implementation("com.blogspot.mydailyjava:weak-lock-free:0.18")
99
}
1010

11+
tasks.jar {
12+
manifest {
13+
attributes("Automatic-Module-Name" to "com.amazonaws.xray.sql")
14+
}
15+
}
16+
1117
description = "AWS X-Ray Recorder SDK for Java - SQL Interceptor"

0 commit comments

Comments
 (0)