Skip to content

Commit

Permalink
Merge pull request #108 from disneystreaming/mill-0.11
Browse files Browse the repository at this point in the history
Mill 0.11
  • Loading branch information
daddykotex authored Aug 4, 2023
2 parents 7adbd48 + c992f01 commit 6bf2275
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .mill-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.12
0.11.1
19 changes: 9 additions & 10 deletions build.sc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import $ivy.`de.tototec::de.tobiasroeser.mill.vcs.version::0.4.0`
import de.tobiasroeser.mill.vcs.version.VcsVersion
import $ivy.`io.github.davidgregory084::mill-tpolecat::0.3.2`
import $ivy.`com.lewisjkl::header-mill-plugin::0.0.2`
import $ivy.`io.github.davidgregory084::mill-tpolecat::0.3.5`
import $ivy.`com.lewisjkl::header-mill-plugin::0.0.3`
import header._
import $ivy.`io.chris-kipp::mill-ci-release::0.1.9`
import io.kipp.mill.ci.release.CiReleaseModule
Expand All @@ -12,7 +12,6 @@ import mill.scalalib.scalafmt.ScalafmtModule
import mill._
import mill.modules.Jvm
import mill.scalalib._
import mill.scalalib.api.Util._
import mill.scalalib.publish._

trait BaseModule extends Module with HeaderModule {
Expand Down Expand Up @@ -115,7 +114,7 @@ object core extends BaseJavaModule {
def underMetaInfSmithy(p: os.RelPath): Boolean =
Seq("META-INF", "smithy").forall(p.segments.contains)

Jvm.createJar(
mill.util.Jvm.createJar(
(allSources() ++ resources())
.map(_.path)
.filter(os.exists),
Expand All @@ -125,7 +124,7 @@ object core extends BaseJavaModule {
}

object test
extends this.Tests
extends JavaModuleTests
with BaseScalaNoPublishModule
with BaseMunitTests {
def ivyDeps = {
Expand All @@ -138,9 +137,9 @@ object core extends BaseJavaModule {

val scalaVersionsMap =
Map("2.13" -> "2.13.7", "2.12" -> "2.12.17", "3" -> "3.2.2")
object openapi extends Cross[OpenapiModule](scalaVersionsMap.keys.toList: _*)
class OpenapiModule(crossVersion: String) extends BaseCrossScalaModule {

object openapi extends Cross[OpenapiModule](scalaVersionsMap.keys.toList)
trait OpenapiModule extends BaseCrossScalaModule {
val crossVersion = crossValue
def artifactName = "alloy-openapi"

def crossScalaVersion = scalaVersionsMap(crossVersion)
Expand All @@ -159,7 +158,7 @@ class OpenapiModule(crossVersion: String) extends BaseCrossScalaModule {
Deps.cats.core
)

object test extends this.Tests with BaseMunitTests
object test extends ScalaTests with BaseMunitTests
}

object `protocol-tests` extends BaseJavaModule {
Expand All @@ -172,7 +171,7 @@ object `protocol-tests` extends BaseJavaModule {

object sanity
extends BaseScalaNoPublishModule
with Tests
with JavaModuleTests
with TestModule.Munit {
def ivyDeps = Agg(Deps.munit.munit)
}
Expand Down

0 comments on commit 6bf2275

Please sign in to comment.