Bump to Scala 3.1.3

This commit is contained in:
Eugene Yokota 2022-07-24 00:46:49 -04:00
parent f3dd2dff36
commit c7fa4937ef
2 changed files with 16 additions and 7 deletions

View File

@ -190,13 +190,22 @@ sealed abstract class TaskKey[A1]
ev: Remove.Values[A1, A2]
): Setting[Task[A1]] = make(vs)(ev.removeValues)
inline def make[S](other: Initialize[Task[S]], source: SourcePosition)(
f: (A1, S) => A1
): Setting[Task[A1]] = set0(this.zipWith(other)((a, b) => (a, b) map f.tupled), source)
inline def make[A2](other: Initialize[Task[A2]], source: SourcePosition)(
f: (A1, A2) => A1
): Setting[Task[A1]] =
set0(
this.zipWith(other) { (ta1: Task[A1], ta2: Task[A2]) =>
multT2Task((ta1, ta2)) map f.tupled
},
source
)
inline def make[S](other: Initialize[Task[S]])(
f: (A1, S) => A1
): Setting[Task[A1]] = set(this.zipWith(other)((a, b) => (a, b) map f.tupled))
inline def make[A2](other: Initialize[Task[A2]])(
f: (A1, A2) => A1
): Setting[Task[A1]] =
set(this.zipWith(other) { (ta1: Task[A1], ta2: Task[A2]) =>
multT2Task((ta1, ta2)) map f.tupled
})
final def withRank(rank: Int): TaskKey[A1] =
TaskKey(AttributeKey.copyWithRank(key, rank))

View File

@ -6,7 +6,7 @@ object Dependencies {
// WARNING: Please Scala update versions in PluginCross.scala too
val scala212 = "2.12.17"
val scala213 = "2.13.8"
val scala3 = "3.1.1"
val scala3 = "3.1.3"
val checkPluginCross = settingKey[Unit]("Make sure scalaVersion match up")
val baseScalaVersion = scala3
def nightlyVersion: Option[String] =