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

Support Java 11 #65

Open
forficate opened this issue Jul 3, 2019 · 1 comment
Open

Support Java 11 #65

forficate opened this issue Jul 3, 2019 · 1 comment

Comments

@forficate
Copy link

Using plugin on OpenJDK 11 produces the below errors on upload:

[info] Done packaging. 
[error] java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter 
[error]     at com.amazonaws.util.Base64.encodeAsString(Base64.java:39) 
[error]     at com.amazonaws.util.Md5Utils.md5AsBase64(Md5Utils.java:104) 
[error]     at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1489) 
[error]     at com.typesafe.sbt.S3Plugin$.$anonfun$s3Settings$1(S3Plugin.scala:179) 
[error]     at com.typesafe.sbt.S3Plugin$.$anonfun$s3Settings$1$adapted(S3Plugin.scala:176) 
[error]     at com.typesafe.sbt.S3Plugin$.$anonfun$s3InitTask$2(S3Plugin.scala:118) 

This looks to be because the current version of the AWS SDK used does not support Java 11.

The SDK would need updating to AWS SDK2 or use the hacks in the following link to bring in the dependencies https://stackoverflow.com/questions/43574426/how-to-resolve-java-lang-noclassdeffounderror-javax-xml-bind-jaxbexception-in-j

@coding-bunny
Copy link

Any update on this?
I'm working around the issue by manually adding the required dependencies to my project, but obviously this blows up the size of the JAR which is an issue for AWS.

Would be nice to see this project implement the required changes to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants