File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
modules/cli/src/main/scala/scala/cli/packaging Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import java.io.File
44
55import scala .annotation .tailrec
66import scala .build .internal .{ManifestJar , Runner }
7+ import scala .build .internals .ConsoleUtils .ScalaCliConsole .warnPrefix
78import scala .build .internals .EnvVar
89import scala .build .{Build , Logger , Positioned , coursierVersion }
910import scala .cli .errors .GraalVMNativeImageError
@@ -209,6 +210,12 @@ object NativeImage {
209210 val needsProcessing =
210211 builds.head.scalaParams.map(_.scalaVersion.coursierVersion)
211212 .exists(sv => (sv >= " 3.0.0" .coursierVersion) && (sv < " 3.3.0" .coursierVersion))
213+ if needsProcessing then
214+ logger.message(
215+ s """ $warnPrefix building native images with Scala 3 older than 3.3.0 is deprecated.
216+ | $warnPrefix support will be dropped in a future Scala CLI version.
217+ | $warnPrefix it is advised to upgrade to a more recent Scala version. """ .stripMargin
218+ )
212219 val (classPath, toClean, scala3extraOptions) =
213220 if needsProcessing then {
214221 val cpString = processedClassPath.mkString(File .pathSeparator)
You can’t perform that action at this time.
0 commit comments