-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consider publishing a "fat-jar" #200
Comments
I've read bazelbuild/rules_scala#184 discussions. You must be doing something wrong. Scoverage works with three different build tools: SBT, Maven and Gradle without problems, especially I never heard about I could help you, but I don't know Bazel at all. Could you show me in your code, how you construct scalac classpath? |
Actually |
Yea it's a pretty mysterious problem for me. What I did learn is that there is a version of scala-xml on scalacs bootclasspath on 2.11 that may be in conflict. My understanding is it's there because of some older dependency on it fir scaladoc. I confirmed I had the scala xml module on my classpath. Scalac seems to not resolve it because of the bootclasspath situation for scalac plugins with transitive dependencies. For what it's worth I was able to get it creating the measurements and instrumentation xml file by cloning your repo and generating a fatjar with assembly sbt. We may be able create that artifact in bazel itself in the scala plugin as a "deploy jar" I can get you the stack trace that triggered the xml classnotfound. It was a call to Serialize I believe. |
I would not recommend fat jar solution. |
Atm the bazel scala rules only suppprt 2.11 |
I worked around this inside bazel |
I'm having trouble useing this plugin in the context of bazel mostly because if its dependency on scala.xml and the interesting behavior that scala 2.11's bootclasspath
bazelbuild/rules_scala#184
I think one thing that may potentially help alleviate some of that pain would be to publish a version of this plugin in a jar that includes scala.xml as a fat jar.
The text was updated successfully, but these errors were encountered: