mirror of https://github.com/sbt/sbt.git
Merge pull request #7796 from Friendseeker/bump-scala-ver-LTS
This commit is contained in:
commit
999f1d6ee8
|
|
@ -21,6 +21,7 @@ object JLineTest {
|
|||
val five = (num ~ token("+" | "-") ~ num) <~ token('=') flatMap {
|
||||
case a ~ "+" ~ b => token((a + b).toString)
|
||||
case a ~ "-" ~ b => token((a - b).toString)
|
||||
case _ => failure("Unexpected pattern")
|
||||
}
|
||||
|
||||
val parsers = Map("1" -> one, "2" -> two, "3" -> three, "4" -> four, "5" -> five)
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ import sjsonnew.{
|
|||
LNil,
|
||||
Unbuilder,
|
||||
deserializationError,
|
||||
flatUnionFormat4
|
||||
}
|
||||
|
||||
import sbt.util.Logger
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@
|
|||
package sbt.test
|
||||
|
||||
import sbt._
|
||||
import sbt.Def.Initialize
|
||||
|
||||
object TupleSyntaxTest:
|
||||
def t1[A](a: SettingKey[A], b: TaskKey[A], c: Def.Initialize[A], d: Def.Initialize[Task[A]]) = {
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ end UseTask
|
|||
object Assign {
|
||||
import java.io.File
|
||||
|
||||
import sbt.std.FullInstance.given
|
||||
import Def.{
|
||||
Initialize,
|
||||
inputKey,
|
||||
|
|
|
|||
|
|
@ -16,12 +16,9 @@ import java.util.Properties
|
|||
import java.util.concurrent.ForkJoinPool
|
||||
import java.util.concurrent.atomic.AtomicBoolean
|
||||
|
||||
import sbt.BasicCommandStrings.{ JavaClient, Shell, Shutdown, TemplateCommand }
|
||||
import sbt.Project.LoadAction
|
||||
import sbt.ProjectExtra.*
|
||||
import sbt.internal.EvalImports
|
||||
import sbt.internal.Aggregation.AnyKeys
|
||||
import sbt.internal.CommandStrings.BootCommand
|
||||
import sbt.internal._
|
||||
import sbt.internal.client.BspClient
|
||||
import sbt.internal.inc.ScalaInstance
|
||||
|
|
@ -63,7 +60,7 @@ private[sbt] object xMain:
|
|||
|
||||
private[sbt] def run(configuration: xsbti.AppConfiguration): xsbti.MainResult = boundary {
|
||||
try {
|
||||
import BasicCommandStrings.{ DashDashClient, DashDashServer, runEarly }
|
||||
import BasicCommandStrings.{ JavaClient, DashDashClient, DashDashServer, runEarly }
|
||||
import BasicCommands.early
|
||||
import BuiltinCommands.defaults
|
||||
import sbt.internal.CommandStrings.{ BootCommand, DefaultsCommand, InitCommand }
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ import sbt.internal.util.{ AttributeKey, Dag }
|
|||
import sbt.librarymanagement.{ ConfigRef, Configuration }
|
||||
import sbt.internal.util.Types.const
|
||||
import Def.Initialize
|
||||
import sbt.Project.inScope
|
||||
import java.net.URI
|
||||
|
||||
sealed abstract class ScopeFilter { self =>
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ import sbt.internal.io.WatchState
|
|||
import sbt.internal.nio._
|
||||
import sbt.internal.ui.UITask
|
||||
import sbt.internal.util.JoinThread._
|
||||
import sbt.internal.util.complete.DefaultParsers.{ Space, matched }
|
||||
import sbt.internal.util.complete.DefaultParsers.Space
|
||||
import sbt.internal.util.complete.Parser._
|
||||
import sbt.internal.util.complete.{ Parser, Parsers }
|
||||
import sbt.internal.util._
|
||||
|
|
|
|||
|
|
@ -11,14 +11,13 @@ package internal
|
|||
|
||||
import java.io.File
|
||||
import java.util.concurrent.ConcurrentHashMap
|
||||
import Keys.{ test, fileConverter, fullClasspath, streams }
|
||||
import Keys.{ fileConverter, fullClasspath, streams }
|
||||
import sbt.Def.Initialize
|
||||
import sbt.internal.inc.Analysis
|
||||
import sbt.internal.util.Attributed
|
||||
import sbt.internal.util.Types.const
|
||||
import sbt.io.{ GlobFilter, IO, NameFilter }
|
||||
import sbt.protocol.testing.TestResult
|
||||
import sbt.SlashSyntax0.*
|
||||
import sbt.util.{ ActionCache, BuildWideCacheConfiguration, CacheLevelTag, Digest }
|
||||
import sbt.util.CacheImplicits.given
|
||||
import scala.collection.concurrent
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ package sbt
|
|||
package internal
|
||||
|
||||
import Keys._
|
||||
import Def.{ Setting, ScopedKey }
|
||||
import sbt.internal.util.{ FilePosition, NoPosition, SourcePosition }
|
||||
import java.io.File
|
||||
import ProjectExtra.{ extract, scopedKeyData }
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ import sbt.internal.util.Attributed.data
|
|||
import sbt.internal.util.Types.const
|
||||
import sbt.internal.util.{ Attributed, Settings }
|
||||
import sbt.internal.server.BuildServerEvalReporter
|
||||
import sbt.io.{ GlobFilter, IO, Path }
|
||||
import sbt.io.{ GlobFilter, IO }
|
||||
import sbt.librarymanagement.ivy.{ InlineIvyConfiguration, IvyDependencyResolution, IvyPaths }
|
||||
import sbt.librarymanagement.{ Configuration, Configurations, Resolver }
|
||||
import sbt.nio.Settings
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ import sbt.BuildExtra.*
|
|||
import sbt.BuildPaths.{ configurationSources, projectStandard }
|
||||
import sbt.Def._
|
||||
import sbt.Keys._
|
||||
import sbt.Project._
|
||||
import sbt.ProjectExtra.*
|
||||
import sbt.ScopeFilter.Make._
|
||||
import sbt.Scoped.richTaskSeq
|
||||
|
|
|
|||
|
|
@ -562,7 +562,6 @@ final class NetworkChannel(
|
|||
override def shutdown(): Unit = {
|
||||
shutdown(true)
|
||||
}
|
||||
import sjsonnew.BasicJsonProtocol.BooleanJsonFormat
|
||||
|
||||
override def shutdown(logShutdown: Boolean): Unit =
|
||||
shutdown(logShutdown, remainingCommands = None)
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ import java.io.File
|
|||
|
||||
import sbt.Def._
|
||||
import sbt.Keys._
|
||||
import sbt.Project._
|
||||
import sbt.ProjectExtra.*
|
||||
import sbt.internal.graph._
|
||||
import sbt.internal.graph.backend.SbtUpdateReport
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ object Dependencies {
|
|||
// WARNING: Please Scala update versions in PluginCross.scala too
|
||||
val scala212 = "2.12.20"
|
||||
val scala213 = "2.13.12"
|
||||
val scala3 = "3.3.1"
|
||||
val scala3 = "3.3.4"
|
||||
val checkPluginCross = settingKey[Unit]("Make sure scalaVersion match up")
|
||||
val baseScalaVersion = scala3
|
||||
def nightlyVersion: Option[String] =
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ class BuildServerTest extends AbstractServerTest {
|
|||
"project/src/main/scala-3",
|
||||
s"project/src/main/scala-sbt-${TestProperties.version}",
|
||||
"project/src/main/scala/",
|
||||
"target/out/jvm/scala-3.3.1/buildserver-build/src_managed/main"
|
||||
"target/out/jvm/scala-3.3.4/buildserver-build/src_managed/main"
|
||||
).map(rel => new File(svr.baseDirectory.getAbsoluteFile, rel).toURI).sorted
|
||||
assert(sources == expectedSources)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,8 +9,9 @@
|
|||
package sbt.internal.util
|
||||
|
||||
import java.lang.Runnable
|
||||
import java.util.concurrent.{ atomic, Executor, LinkedBlockingQueue }
|
||||
import java.util.concurrent.{ Executor, LinkedBlockingQueue, atomic }
|
||||
import atomic.{ AtomicBoolean, AtomicInteger }
|
||||
import scala.annotation.nowarn
|
||||
|
||||
enum EvaluationState:
|
||||
case New
|
||||
|
|
@ -35,6 +36,7 @@ abstract class EvaluateSettings[ScopeType]:
|
|||
private def getStatic[A](key: ScopedKey[A]): INode[A] =
|
||||
static.get(key).getOrElse { sys.error("Illegal reference to key " + key) }
|
||||
|
||||
@nowarn
|
||||
private val transform: [A] => Initialize[A] => INode[A] = [A] =>
|
||||
(fa: Initialize[A]) =>
|
||||
fa match
|
||||
|
|
|
|||
Loading…
Reference in New Issue