cross-building with source:3.0-migration compiler option #16720
RustedBones
started this conversation in
General Discussion
Replies: 1 comment
-
I'm afraid that the scalac option is applied to the whole compilation classpath by sbt. In the compiler, we don't differentiate directories based on their name (like the
This could be problematic, since the (2.) would have to depend on (1.) (or vice versa), which may not always be possible. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm cross-building a library with scala 2.12 and 2.13 and wanted to add support for scala 3.2.1
I added the
-source:3.0-migration
scalac option for scala 3, hoping to get some warnings from the compiler on the shared code.However, this setup does not work if my module contains a specific
scala-3
source folder.if for instance I have in
src/main/scala-3/example/Test.scala
The compiler will not accept the new syntax and prints
Shouldn't the compiler consider
scala-3
source folder as already migrated ?Beta Was this translation helpful? Give feedback.
All reactions