Skip to content

Commit

Permalink
Merge pull request #36 from lolgab/mill-0.11
Browse files Browse the repository at this point in the history
Support Mill 0.11.0-M1
  • Loading branch information
ckipp01 authored Dec 22, 2022
2 parents 665cf1a + 5ac6ebe commit 5d4b71e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,23 @@ import de.tobiasroeser.mill.vcs.version.VcsVersion
import io.kipp.mill.ci.release.CiReleaseModule
import io.kipp.mill.ci.release.SonatypeHost

val millVersion = "0.10.0"
val scala213 = "2.13.8"
val millVersions = Seq("0.10.0", "0.11.0-M1")
val scala213 = "2.13.10"
val pluginName = "mill-ci-release"

def millBinaryVersion(millVersion: String) = scalaNativeBinaryVersion(
millVersion
)

object plugin
object plugin extends Cross[Plugin](millVersions: _*)
class Plugin(millVersion: String)
extends ScalaModule
with CiReleaseModule
with ScalafixModule
with ScalafmtModule {

override def millSourcePath = super.millSourcePath / os.up

override def scalaVersion = scala213

override def artifactName =
Expand All @@ -50,7 +53,7 @@ object plugin
ivy"com.lihaoyi::mill-scalalib:${millVersion}"
)
override def ivyDeps = super.ivyDeps() ++ Agg(
ivy"de.tototec::de.tobiasroeser.mill.vcs.version_mill0.10::0.3.0"
ivy"de.tototec::de.tobiasroeser.mill.vcs.version_mill${millBinaryVersion(millVersion)}::0.3.0-7-8f12c7"
)
override def scalacOptions = Seq("-Ywarn-unused", "-deprecation")

Expand Down

0 comments on commit 5d4b71e

Please sign in to comment.