Skip to content

Commit 3d11361

Browse files
committed
Fix publishing for plugin cross versions
Earlier versions of 2.13 do not support -Wconf nor -release:8 (they support "-release 8").
1 parent 50ca936 commit 3d11361

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugin/package.mill

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ object `package` extends RootModule {
1313
object cross extends Cross[Plugin](v.pluginScalaCrossVersions)
1414
}
1515

16-
trait Plugin extends CrossSbtModule with ScalafmtModule with HasCommonOptions with release.ChiselPublishModule {
16+
trait Plugin extends CrossSbtModule with ScalafmtModule with release.ChiselPublishModule {
1717
override def artifactName = "chisel-plugin"
1818

1919
def millSourcePath = super.millSourcePath / os.up
2020

2121
// The plugin is compiled for every minor Scala version
2222
override def crossFullScalaVersion = true
2323

24-
// There is no code sharing in the plugin so no point in -Xsource:3
25-
override def xsource3 = false
24+
// Does not use common options because -Wconf wasn't supported in early 2.13, nor was "-release:"
25+
override def scalacOptions = super.scalacOptions() ++ Seq("-release", "8")
2626

2727
def scalaLibraryIvy = v.scalaLibrary(crossScalaVersion)
2828
def scalaReflectIvy = v.scalaReflect(crossScalaVersion)

0 commit comments

Comments
 (0)