Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update case-app, case-app-annotations to 2.1.0-M29 #1378

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,8 @@ trait Integration extends SbtModule {
s"-Dalmond.test.scala-version=${ScalaVersions.scala3Latest}",
s"-Dalmond.test.scala212-version=${ScalaVersions.scala212}",
s"-Dalmond.test.scala213-version=${ScalaVersions.scala213}",
s"-Dalmond.test.scala213-pulled-by-3-version=${helper.scala213()}"
s"-Dalmond.test.scala213-pulled-by-3-version=${helper.scala213()}",
s"-Dalmond.test.case-app-version=${Versions.caseApp}"
)
}
def tmpDirBase = T.persistent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -659,8 +659,28 @@ object Tests {
val sbv = scalaVersion.split('.').take(2).mkString(".")
val isScala2 = scalaVersion.startsWith("2.")

val kernelShapelessVersion = "2.3.10" // might need to be updated when bumping case-app
val testShapelessVersion = "2.3.3" // no need to bump that one
val caseAppVersion = sys.props.getOrElse(
"almond.test.case-app-version",
sys.error("almond.test.case-app-version Java property not set")
)

val kernelShapelessVersion: String = {
val res = coursierapi.Fetch.create()
.addDependencies(
coursierapi.Dependency.of("com.github.alexarchambault", "case-app_" + sbv, caseAppVersion)
)
.fetchResult()
res.getDependencies.asScala
.find { dep =>
dep.getModule.getOrganization == "com.chuusai" &&
dep.getModule.getName == "shapeless_" + sbv
}
.map(_.getVersion)
.getOrElse {
sys.error(s"Cannot get shapeless version pulled by case-app $caseAppVersion")
}
}
val testShapelessVersion = "2.3.3" // no need to bump that one

assert(kernelShapelessVersion != testShapelessVersion)

Expand Down
2 changes: 1 addition & 1 deletion project/deps.sc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import mill.scalalib._

object Versions {
def ammonite = "3.0.0-M2-15-9bed9700"
def caseApp = "2.1.0-M26"
def caseApp = "2.1.0-M29"
def coursier = "2.1.10"
def jsoniterScala = "2.13.5"
def scalafmt = "3.7.15"
Expand Down
Loading