Skip to content

Commit

Permalink
Merge pull request #114 from Gedochao/update/mill-0.11.12
Browse files Browse the repository at this point in the history
Update `mill` to 0.11.12
  • Loading branch information
Gedochao authored Sep 16, 2024
2 parents 7aaf578 + 2697b76 commit fc04420
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .mill-jvm-opts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-Xmx768m
-Xmx2048m
-Xms128m
-Xss8m
-Dxsbt.skip.cp.lookup=true
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.12
20 changes: 12 additions & 8 deletions build.sc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import $ivy.`io.github.alexarchambault.mill::mill-native-image::0.1.26`
import $ivy.`io.github.alexarchambault.mill::mill-native-image-upload:0.1.24`
import $ivy.`io.github.alexarchambault.mill::mill-native-image-upload:0.1.26`

import $file.publish, publish.{finalPublishVersion, publishSonatype => publishSonatype0}

Expand Down Expand Up @@ -53,7 +53,8 @@ trait ScalaCliSigningPublish extends PublishModule {
}

object shared extends Cross[Shared](Scala.scala213, Scala.scala3)
class Shared(val crossScalaVersion: String) extends CrossScalaModule with ScalaCliSigningPublish {
trait Shared extends CrossScalaModule with ScalaCliSigningPublish {
override val crossScalaVersion = crossValue
def ivyDeps = super.ivyDeps() ++ Seq(
Deps.jsoniterCore,
Deps.osLib
Expand Down Expand Up @@ -89,8 +90,9 @@ trait CliNativeImage extends NativeImage {
}

object cli extends Cross[Cli](Scala.scala213, Scala.scala3)
class Cli(val crossScalaVersion: String) extends CrossScalaModule with ScalaCliSigningPublish {
trait Cli extends CrossScalaModule with ScalaCliSigningPublish {
self =>
override val crossScalaVersion = crossValue
def ivyDeps = super.ivyDeps() ++ Seq(
Deps.bouncycastle,
Deps.caseApp,
Expand Down Expand Up @@ -156,7 +158,7 @@ trait CliTests extends ScalaModule {
def testLauncher: T[PathRef]
def cliKind: T[String]

def scalaVersion = Scala.scala3
override def scalaVersion = Scala.scala3

def prefix = "integration-"
private def updateRef(name: String, ref: PathRef): PathRef = {
Expand Down Expand Up @@ -184,7 +186,7 @@ trait CliTests extends ScalaModule {
super.resources() ++ Seq(mainPath)
}

trait Tests extends super.Tests {
trait Tests extends ScalaTests with TestModule.Munit {
def ivyDeps = super.ivyDeps() ++ Agg(
Deps.expecty,
Deps.munit
Expand Down Expand Up @@ -213,9 +215,11 @@ trait CliTests extends ScalaModule {
}

object `jvm-integration` extends Cross[JvmIntegration](Scala.scala213, Scala.scala3)
class JvmIntegration(val crossScalaVersion: String) extends CliTests {
def testLauncher = cli(crossScalaVersion).launcher()
def cliKind = "jvm"
trait JvmIntegration extends CrossScalaModule with CliTests { self =>
scalaVersion
override val crossScalaVersion = crossValue
def testLauncher = cli(crossScalaVersion).launcher()
def cliKind = "jvm"

object test extends Tests
}
Expand Down
2 changes: 1 addition & 1 deletion mill
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Licensed under the Apache License, Version 2.0


DEFAULT_MILL_VERSION=0.10.12
DEFAULT_MILL_VERSION=0.11.12

set -e

Expand Down
2 changes: 1 addition & 1 deletion mill.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ rem setlocal seems to be unavailable on Windows 95/98/ME
rem but I don't think we need to support them in 2019
setlocal enabledelayedexpansion

set "DEFAULT_MILL_VERSION=0.10.12"
set "DEFAULT_MILL_VERSION=0.11.12"

set "MILL_REPO_URL=https://github.com/com-lihaoyi/mill"

Expand Down
2 changes: 1 addition & 1 deletion publish.sc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import $ivy.`de.tototec::de.tobiasroeser.mill.vcs.version::0.1.4`
import $ivy.`de.tototec::de.tobiasroeser.mill.vcs.version::0.4.0`

import de.tobiasroeser.mill.vcs.version._
import mill._, scalalib._
Expand Down

0 comments on commit fc04420

Please sign in to comment.