Skip to content

Commit

Permalink
Part 14 - fix contrib.proguard default options to filter scala.AnyKind
Browse files Browse the repository at this point in the history
  • Loading branch information
bishabosha committed Sep 20, 2024
1 parent 89326be commit e17144d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion contrib/proguard/src/mill/contrib/proguard/Proguard.scala
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ trait Proguard extends ScalaModule {
T.log.error(
"Proguard is set to not warn about message: can't find referenced method 'void invoke()' in library class java.lang.invoke.MethodHandle"
)
Seq[String]("-dontwarn java.lang.invoke.MethodHandle")
T.log.error(
"""Proguard is set to not warn about message: "scala.quoted.Type: can't find referenced class scala.AnyKind""""
)
Seq[String](
"-dontwarn java.lang.invoke.MethodHandle",
"-dontwarn scala.AnyKind"
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import utest.framework.TestPath
object ProguardTests extends TestSuite {

object proguard extends TestBaseModule with ScalaModule with Proguard {
override def scalaVersion: T[String] = T(sys.props.getOrElse("MILL_SCALA_2_13_VERSION", ???))
override def scalaVersion: T[String] = T(sys.props.getOrElse("MILL_SCALA_3_NEXT_VERSION", ???))

def proguardContribClasspath = Task {
millProjectModule("mill-contrib-proguard", repositoriesTask())
Expand Down

0 comments on commit e17144d

Please sign in to comment.