I'm trying to use graphql-java-tools dependency in a Java 11 project and the following Gradle configuration to include all dependencies in the module path.
compileJava { inputs.property("moduleName", moduleName) doFirst { options.compilerArgs = [ '--module-path', classpath.asPath, ] classpath = files() } }
On compilation time many line errors like these for a lot of project dependenciecies are echoed, finally the compilation fails.
error: the unnamed module reads package graphql.schema.idl from both graphql.java and graphql.java.tools ... error: module graphql.java.tools reads package graphql.schema.idl from both graphql.java and graphql.java.tools
graphql.schema.idl package is provided by both graphql-java and graphql-java-tools what is not allowed in JPMS.
https://github.com/graphql-java/graphql-java/tree/master/src/main/java/graphql/schema/idl
https://github.com/graphql-java-kickstart/graphql-java-tools/tree/master/src/main/kotlin/graphql/schema/idl
graphql-java-tools package graphql.schema.idl only contains one class DirectiveBehavior.kt.
Is there any solution to resolve this package split?