Skip to content

Commit

Permalink
Add Automatic-Module-Name to jar manifest. Fixes aws#292. (aws#295)
Browse files Browse the repository at this point in the history
* Add Automatic-Module-Name to jar manifest. Fixes aws#292.

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

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
  • Loading branch information
brcolow and anuraaga authored Aug 3, 2021
1 parent 5143932 commit a1ed255
Show file tree
Hide file tree
Showing 15 changed files with 88 additions and 0 deletions.
6 changes: 6 additions & 0 deletions aws-xray-recorder-sdk-apache-http/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ dependencies {
testImplementation("com.github.tomakehurst:wiremock-jre8")
}

tasks.jar {
manifest {
attributes("Automatic-Module-Name" to "com.amazonaws.xray.apache-http")
}
}

description = "AWS X-Ray Recorder SDK for Java - Apache HTTP Client Proxy"
6 changes: 6 additions & 0 deletions aws-xray-recorder-sdk-aws-sdk-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@ dependencies {
testImplementation("com.fasterxml.jackson.core:jackson-databind")
}

tasks.jar {
manifest {
attributes("Automatic-Module-Name" to "com.amazonaws.xray.aws-sdk-core")
}
}

description = "AWS X-Ray Recorder SDK for Java - AWS SDK Core"
6 changes: 6 additions & 0 deletions aws-xray-recorder-sdk-aws-sdk-instrumentor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ dependencies {
implementation(project(":aws-xray-recorder-sdk-aws-sdk"))
}

tasks.jar {
manifest {
attributes("Automatic-Module-Name" to "com.amazonaws.xray.aws-sdk-instrumentor")
}
}

description = "AWS X-Ray Recorder SDK for Java - AWS SDK Instrumentor"
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ dependencies {
implementation(project(":aws-xray-recorder-sdk-aws-sdk-v2"))
}

tasks.jar {
manifest {
attributes("Automatic-Module-Name" to "com.amazonaws.xray.aws-sdk-v2-instrumentor")
}
}

description = "AWS X-Ray Recorder SDK for Java - AWS SDK V2 Instrumentor"
6 changes: 6 additions & 0 deletions aws-xray-recorder-sdk-aws-sdk-v2/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,10 @@ dependencies {
testImplementation("software.amazon.awssdk:lambda:2.15.20")
}

tasks.jar {
manifest {
attributes("Automatic-Module-Name" to "com.amazonaws.xray.aws-sdk-v2")
}
}

description = "AWS X-Ray Recorder SDK for Java - AWS SDK V2"
6 changes: 6 additions & 0 deletions aws-xray-recorder-sdk-aws-sdk/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,10 @@ dependencies {
testImplementation("org.skyscreamer:jsonassert:1.3.0")
}

tasks.jar {
manifest {
attributes("Automatic-Module-Name" to "com.amazonaws.xray.aws-sdk")
}
}

description = "AWS X-Ray Recorder SDK for Java - AWS SDK Handler"
6 changes: 6 additions & 0 deletions aws-xray-recorder-sdk-benchmark/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ dependencies {
add("jmhRuntimeClasspath", platform(project(":dependencyManagement")))
}

tasks.jar {
manifest {
attributes("Automatic-Module-Name" to "com.amazonaws.xray.benchmark")
}
}

jmh {
fork = 1
// Required when also including annotation processor.
Expand Down
6 changes: 6 additions & 0 deletions aws-xray-recorder-sdk-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,10 @@ dependencies {
testImplementation("org.skyscreamer:jsonassert:1.3.0")
}

tasks.jar {
manifest {
attributes("Automatic-Module-Name" to "com.amazonaws.xray.sdk-core")
}
}

description = "AWS X-Ray Recorder SDK for Java - Core"
6 changes: 6 additions & 0 deletions aws-xray-recorder-sdk-log4j/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ dependencies {
testImplementation("org.apache.logging.log4j:log4j-api:2.13.3")
}

tasks.jar {
manifest {
attributes("Automatic-Module-Name" to "com.amazonaws.xray.log4j")
}
}

description = "AWS X-Ray Recorder SDK for Java – Log4J Trace ID Injection"
6 changes: 6 additions & 0 deletions aws-xray-recorder-sdk-metrics/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@ dependencies {
testImplementation("org.powermock:powermock-api-mockito2:2.0.2")
}

tasks.jar {
manifest {
attributes("Automatic-Module-Name" to "com.amazonaws.xray.metrics")
}
}

description = "AWS X-Ray Recorder SDK for Java - Segment Metrics"
6 changes: 6 additions & 0 deletions aws-xray-recorder-sdk-slf4j/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ dependencies {
testImplementation("ch.qos.logback:logback-classic:1.3.0-alpha5")
}

tasks.jar {
manifest {
attributes("Automatic-Module-Name" to "com.amazonaws.xray.slf4j")
}
}

description = "AWS X-Ray Recorder SDK for Java - SLF4J Trace ID Injection"
6 changes: 6 additions & 0 deletions aws-xray-recorder-sdk-spring/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ dependencies {
compileOnly("org.springframework.data:spring-data-commons:2.0.0.RELEASE")
}

tasks.jar {
manifest {
attributes("Automatic-Module-Name" to "com.amazonaws.xray.spring")
}
}

description = "AWS X-Ray Recorder SDK for Java - Spring Framework Interceptors"
5 changes: 5 additions & 0 deletions aws-xray-recorder-sdk-sql-mysql/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ dependencies {
compileOnly("org.apache.tomcat:tomcat-jdbc:8.0.36")
}

tasks.jar {
manifest {
attributes("Automatic-Module-Name" to "com.amazonaws.xray.sql-mysql")
}
}
description = "AWS X-Ray Recorder SDK for Java - AWS SDK MySQL Interceptor"
5 changes: 5 additions & 0 deletions aws-xray-recorder-sdk-sql-postgres/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ dependencies {
compileOnly("org.apache.tomcat:tomcat-jdbc:8.0.36")
}

tasks.jar {
manifest {
attributes("Automatic-Module-Name" to "com.amazonaws.xray.sql-postgres")
}
}
description = "AWS X-Ray Recorder SDK for Java - AWS SDK PostgreSQL Interceptor"
6 changes: 6 additions & 0 deletions aws-xray-recorder-sdk-sql/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@ dependencies {
implementation("com.blogspot.mydailyjava:weak-lock-free:0.18")
}

tasks.jar {
manifest {
attributes("Automatic-Module-Name" to "com.amazonaws.xray.sql")
}
}

description = "AWS X-Ray Recorder SDK for Java - SQL Interceptor"

0 comments on commit a1ed255

Please sign in to comment.