question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generate Scala 2.12 compatible classes

See original GitHub issue

Despite the README says generated classes are Scala 2.12 compatible, I got this error when using generated case classes in a Scala 2.12 project: java.lang.NoClassDefFoundError: scala/Product$class. The avrohugger dependency is only available for Scala 2.11 so when I build my JAR I can’t use the Scala 2.12 compiler in the same project. I want to use the same project to generate Scala source code and compile and build a JAR of classes.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
julianpeeterscommented, Oct 29, 2017

@robvadai @fkoehler Thanks for your patience, all. avrohugger 0.17.0 for scala 2.12 (and sbt-avrohugger 1.0.0) is out now.

0reactions
fkoehlercommented, Oct 27, 2017

We also need a Scala 2.12 and sbt 1.0 release

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scala 2.12.0 is now available!
The FunctionN classes in Scala's standard library are now Single Abstract Method (SAM) types, and all SAM types are treated uniformly – from ......
Read more >
Scala 2.12.0-M2 is now available!
Since Scala 2.11, minor releases of Scala are binary compatible with each other. Scala 2.12 will continue this tradition: every 2.12.x release ...
Read more >
Scala 2.12.0-M5 is now available!
We are happy to announce the availability of Scala 2.12.0-M5! Notable changes in M5 (see here for a more extensive list):.
Read more >
JDK Compatibility - Scala Documentation
Scala 2.13.6 and 2.12.15 support JDK 17. The Scala test suite and Scala community build are green on JDK 17. For sbt users,...
Read more >
scala-collection-compat
To cross-build for 2.12 and 2.11, the rewrite rule introduces a dependency on the scala-collection-compat module, which provides some APIs of 2.13 on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found