mirror of https://github.com/sbt/sbt.git
Bump to Scala 3.1.3
This commit is contained in:
parent
f3dd2dff36
commit
c7fa4937ef
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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] =
|
||||
|
|
|
|||
Loading…
Reference in New Issue