Shipra Goel 3 Years Ago - Edited Hey David, Such an apt time for this useful post! Thank you so much. That's informative. I have a few questions for you. I was working creating a new workspace on JDK 11. I was able to get everything working, except service builder. * What went wrong: Could not determine the dependencies of task ':modules:employee:employee-service:compileJava'. > Could not resolve all task dependencies for configuration ':modules:employee:employee-service:compileClasspath'. > Could not resolve project :modules:employee:employee-api. Required by: project :modules:employee:employee-service > No matching variant of project :modules:employee:employee-api was found. The consumer was configured to find an API of a library compatible with Java 8, preferably in the form of class files, and its dependencies declared externally but: - Variant 'apiElements' capability LRPortal.modules.employee:employee-api:1.0.0 declares an API of a library, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8 - Variant 'runtimeElements' capability LRPortal.modules.employee:employee-api:1.0.0 declares a runtime of a library, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8 Did you get this too? I end up getting the above when i try to do a gradle deploy. Not sure what else needs to be fixed here. Build.properties was having by default entries for source and target compatibility for 1_8 Thanks, Shipra Please sign in to reply. Reply as... Cancel David H Nebinger Shipra Goel 2 Years Ago - Edited Sorry, Shipra, I haven't seen this one before. Can you post to the #portal channel on the community slack? We can discuss there and figure out what might be happening and how to resolve, then I can update the blog with the outcome... Please sign in to reply. Reply as... Cancel Adam Steiner Shipra Goel 2 Years Ago - Edited A little late, but for all to be aware: This was likely caused by the ":modules:employee:employee-api" module being compiled to 11, where " :modules:employee:employee-service" was compiling to 1.8. I hit this too, but in a more convoluted way (with two separate Workspaces, where one WS (compiled to 1.8) was using modules from the other Workspace (compiled to 11), and shared via Maven Local). Please sign in to reply. Reply as... Cancel Alex Kim Shipra Goel 2 Years Ago - Edited Hi David, I've been playing with Headless and Java 11. I've realized that the standard build process is not working due to removed classes, such as: javax.annotation.Generated javax.xml.bind.annotation.XmlRootElement Plus missing GraphQL references. I was wondering if you have an example for Java 11, I can reference or point me to some documentation. Please sign in to reply. Reply as... Cancel
David H Nebinger Shipra Goel 2 Years Ago - Edited Sorry, Shipra, I haven't seen this one before. Can you post to the #portal channel on the community slack? We can discuss there and figure out what might be happening and how to resolve, then I can update the blog with the outcome... Please sign in to reply. Reply as... Cancel
Adam Steiner Shipra Goel 2 Years Ago - Edited A little late, but for all to be aware: This was likely caused by the ":modules:employee:employee-api" module being compiled to 11, where " :modules:employee:employee-service" was compiling to 1.8. I hit this too, but in a more convoluted way (with two separate Workspaces, where one WS (compiled to 1.8) was using modules from the other Workspace (compiled to 11), and shared via Maven Local). Please sign in to reply. Reply as... Cancel
Alex Kim Shipra Goel 2 Years Ago - Edited Hi David, I've been playing with Headless and Java 11. I've realized that the standard build process is not working due to removed classes, such as: javax.annotation.Generated javax.xml.bind.annotation.XmlRootElement Plus missing GraphQL references. I was wondering if you have an example for Java 11, I can reference or point me to some documentation. Please sign in to reply. Reply as... Cancel