Skip to content

Commit 69124b0

Browse files
authored
Silence warning about encoded package names (#5511)
Fixes #5507 Tested manually
1 parent 1cdbb99 commit 69124b0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

integration/ide/gen-idea/resources/hello-idea/idea/scala_compiler.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<parameters>
55
<parameter value="-Xplugin:<!-- IGNORE -->/com/lihaoyi/scalac-mill-moduledefs-plugin_3.7.1/0.11.10/scalac-mill-moduledefs-plugin_3.7.1-0.11.10.jar"/>
66
<parameter value="-deprecation"/>
7+
<parameter value="-Wconf:msg=will be encoded on the classpath:silent"/>
78
</parameters>
89
<plugins>
910
<plugin path="<!-- IGNORE -->/com/lihaoyi/scalac-mill-moduledefs-plugin_3.7.1/0.11.10/scalac-mill-moduledefs-plugin_3.7.1-0.11.10.jar"/>

runner/meta/src/mill/meta/MillBuildRootModule.scala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,12 @@ trait MillBuildRootModule()(implicit
249249
.exclude("com.lihaoyi" -> "sourcecode_3")
250250
)
251251

252-
override def scalacOptions: T[Seq[String]] = Task { super.scalacOptions() ++ Seq("-deprecation") }
252+
override def scalacOptions: T[Seq[String]] = Task {
253+
super.scalacOptions() ++
254+
// This warning comes up for package names with dashes in them like "package build.`foo-bar`",
255+
// but Mill generally handles these fine, so no need to warn the user
256+
Seq("-deprecation", "-Wconf:msg=will be encoded on the classpath:silent")
257+
}
253258

254259
/** Used in BSP IntelliJ, which can only work with directories */
255260
def dummySources: Task[Seq[PathRef]] = Task.Sources(Task.dest)

0 commit comments

Comments
 (0)