Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Automatic-Module-Name to jar manifest. Fixes #292. #295

Merged
merged 2 commits into from
Aug 3, 2021
Merged
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
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"