aws / aws-xray-sdk-java

The official AWS X-Ray Recorder SDK for Java.
Apache License 2.0
96 stars 99 forks source link

aws-xray-recorder-sdk-aws-sdk has maven compile dependency on aws-java-sdk #247

Closed tjoris closed 3 years ago

tjoris commented 3 years ago

Since version 2.7.0 of aws-xray-recorder-sdk-aws-sdk, the maven artifact depends on aws-java-sdk

How to reproduce:

Observed behavior:

Expected behavior:

Additional info

When running mvn dependency:tree with version 2.6.0, you get

[INFO] +- com.amazonaws:aws-xray-recorder-sdk-aws-sdk:jar:2.6.0:compile
[INFO] |  \- com.amazonaws:aws-xray-recorder-sdk-aws-sdk-core:jar:2.6.0:compile

With version 2.8.0, you get

[INFO] +- com.amazonaws:aws-xray-recorder-sdk-aws-sdk:jar:2.8.0:compile
[INFO] |  +- com.amazonaws:aws-java-sdk:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-signer:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-dlm:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-macie:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-eks:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-mediatailor:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-neptune:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-pi:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-iot1clickprojects:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-iot1clickdevices:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-iotanalytics:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-acmpca:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-secretsmanager:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-fms:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-connect:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-transcribe:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-autoscalingplans:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-workmail:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-servicediscovery:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-cloud9:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-serverlessapplicationrepository:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-alexaforbusiness:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-resourcegroups:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-comprehend:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-translate:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-sagemaker:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-iotjobsdataplane:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-sagemakerruntime:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-kinesisvideo:jar:1.11.398:compile
[INFO] |  |  |  +- io.netty:netty-codec-http:jar:4.1.17.Final:compile
[INFO] |  |  |  |  \- io.netty:netty-codec:jar:4.1.17.Final:compile
[INFO] |  |  |  \- io.netty:netty-handler:jar:4.1.17.Final:compile
[INFO] |  |  |     +- io.netty:netty-buffer:jar:4.1.17.Final:compile
[INFO] |  |  |     |  \- io.netty:netty-common:jar:4.1.17.Final:compile
[INFO] |  |  |     \- io.netty:netty-transport:jar:4.1.17.Final:compile
[INFO] |  |  |        \- io.netty:netty-resolver:jar:4.1.17.Final:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-appsync:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-guardduty:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-mq:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-mediaconvert:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-mediastore:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-mediastoredata:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-medialive:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-mediapackage:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-costexplorer:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-pricing:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-mobile:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-cloudhsmv2:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-glue:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-migrationhub:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-dax:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-greengrass:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-athena:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-marketplaceentitlement:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-codestar:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-lexmodelbuilding:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-resourcegroupstaggingapi:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-pinpoint:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-opsworkscm:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-support:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-simpledb:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-servicecatalog:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-servermigration:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-simpleworkflow:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-storagegateway:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-route53:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-importexport:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-sts:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-rds:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-redshift:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-elasticbeanstalk:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-glacier:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-iam:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-datapipeline:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-elasticloadbalancing:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-elasticloadbalancingv2:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-emr:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-elasticache:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-elastictranscoder:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-ec2:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-sns:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-budgets:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-cloudtrail:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-cloudwatch:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-logs:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-events:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-cognitoidentity:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-cognitosync:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-directconnect:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-cloudformation:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-cloudfront:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-clouddirectory:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-kinesis:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-opsworks:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-ses:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-autoscaling:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-cloudsearch:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-cloudwatchmetrics:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-codedeploy:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-codepipeline:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-kms:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-config:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-lambda:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-ecs:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-ecr:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-cloudhsm:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-workspaces:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-machinelearning:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-directory:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-efs:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-codecommit:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-devicefarm:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-elasticsearch:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-waf:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-marketplacecommerceanalytics:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-inspector:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-iot:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-api-gateway:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-acm:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-gamelift:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-dms:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-marketplacemeteringservice:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-cognitoidp:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-discovery:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-applicationautoscaling:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-snowball:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-rekognition:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-polly:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-lightsail:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-stepfunctions:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-health:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-costandusagereport:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-codebuild:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-appstream:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-shield:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-batch:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-lex:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-mechanicalturkrequester:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-organizations:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-workdocs:jar:1.11.398:compile
[INFO] |  |  +- com.amazonaws:aws-java-sdk-models:jar:1.11.398:compile
[INFO] |  |  \- com.amazonaws:aws-java-sdk-swf-libraries:jar:1.11.22:compile
[INFO] |  \- com.amazonaws:aws-xray-recorder-sdk-aws-sdk-core:jar:2.8.0:runtime

The problem might be located in https://github.com/aws/aws-xray-sdk-java/blob/master/aws-xray-recorder-sdk-aws-sdk/build.gradle.kts, which depends on api("com.amazonaws:aws-java-sdk:1.11.398"). Should this be testImplementation("com.amazonaws:aws-java-sdk:1.11.398") ?

willarmiros commented 3 years ago

Fixed in 2.8.0+