I'm playing around with including Scala in my Java project.
I noticed that IntelliJ includes all of the following jars (extracted) in the generated runnable jar artifact:
scala-library-2.12.2.jar
scala-library-2.12.2-sources.jar
scala-reflect-2.12.2.jar
scala-reflect-2.12.2-sources.jar
Ignoring IDEs or build tools, I am curious as to whether all of these jars are actually required for running code that includes portions written in the Scala language.
I assume that, if I don't use any of the Scala libraries contained in these jars, compiled Scala code can actually run without them (I'm not claiming that it's a good idea - just curious).
So, my question is, which jars are required for what functionality and whether I should ALWAYS include all four jars in any application that uses Scala code.
To clarify, my question is only related to running the code, not building it.