When using Gradle 4.8 to publish to S3, using the early access builds of Java 11, we get this:
Caused by: org.gradle.api.GradleException: Cannot publish to S3 since the module 'java.xml.bind' is not available. Please add "-addmods java.xml.bind '-Dorg.gradle.jvmargs=-addmods java.xml.bind'" to your GRADLE_OPTS.
However, java.xml.bind is no longer included in the JDK, so that recommendation is not correct, we can’t -addmods, as adding it causes the JVM to not start anymore.
I found this solution:
But since this is not an actual build issue, I don’t know where to put the dependencies. The Maven-publish plugin seems to be built-in to Maven, I guess it needs these dependencies added.
Where do I put them?