Closed AlokhPD11 closed 4 months ago
Hi @davidB can you please take a look at this issue and help us with what further steps I could take to resolve this ?
I don't think your issue has anything to do with this plugin.
This plugin only takes care of compiling the Scala code. Your issue happens at runtime, because some classes are missing from the classpath. Are you're expecting your jar to be a fatjar containing all the transitive dependencies of your module? If so, your issue is with this repackager (spring-boot?).
Thanks you for the response @slandelle, will check with the spring-boot community regarding this.
I have a multi-module application which has a java HTTP application (springboot, java 11) in one module and scala code in the second module.
The second module is included as a dependency in the first module as code in the second module needs to get invoked on REST invocations.
Here is a minimal project to reproduce the issue.
Steps to reproduce the issue
The above command to run the application fails on initialisation of the scala compiler.
Interesting thing here is once we run the application using -cp command and pass the scala jars in classpath then the initialisation does not fail
The 3 scala jars used are included in the project. They are fetched from maven repository using