I should have just included the errors here, but I thought the whole setup was so messed up that I considered it to be unhelpful.
So what I did was trying to put the guice dependency into the build.gradle file for the subprojects:
configure(subprojects.findAll { it.name.startsWith('de.fraunhofer') }) {
ext.xtextVersion = '2.21.0'
repositories {
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
jcenter()
}
apply plugin: 'java'
dependencies {
compile platform("org.eclipse.xtext:xtext-dev-bom:${xtextVersion}")
// here I added guice 4
compile platform('com.google.inject:guice:4.2.3')
compile platform("com.google.inject.extensions:guice-assistedinject:4.2.3")
}
// and so on ....
After this modification I get an exception:
Starting with a lot of exceptions similar to this:
Caused by: java.lang.NoClassDefFoundError: com/google/inject/internal/util/$Maps
at com.google.inject.assistedinject.BindingCollector.<init>(BindingCollector.java:34)
at com.google.inject.assistedinject.FactoryModuleBuilder.<init>(FactoryModuleBuilder.java:206)
at de.fraunhofer.iosb.pslp.PslpRuntimeModule.configureLibraryAccessFactory(PslpRuntimeModule.java:84)
Followed by this topic exception:
Exception in thread "main" com.google.inject.ProvisionException: Unable to provision, see the following errors:
Followed by a bunch of
1) No implementation for org.example.mydsl.FooComponent was bound.
The base-setup I'm using for my project is your/itemis' language server example from here:
xtext-languageserver-example