Merge pull request #414 from eed3si9n/wip/integrationtest

Deprecate IntegrationTest
This commit is contained in:
adpi2 2023-04-25 12:07:11 +02:00 committed by GitHub
commit b404431de4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View File

@ -3,7 +3,7 @@
*/
package sbt.librarymanagement
import scala.annotation.tailrec
import scala.annotation.{ nowarn, tailrec }
import scala.language.experimental.macros
object Configurations {
@ -19,9 +19,11 @@ object Configurations {
lazy val RuntimeInternal = optionalInternal(Runtime)
lazy val TestInternal = fullInternal(Test)
@nowarn
lazy val IntegrationTestInternal = fullInternal(IntegrationTest)
lazy val CompileInternal = fullInternal(Compile)
@nowarn
def internalMap(c: Configuration) = c match {
case Compile => CompileInternal
case Test => TestInternal
@ -39,6 +41,7 @@ object Configurations {
lazy val Default = Configuration.of("Default", "default")
lazy val Compile = Configuration.of("Compile", "compile")
@deprecated("Create a separate subproject for testing instead", "1.9.0")
lazy val IntegrationTest = Configuration.of("IntegrationTest", "it") extend (Runtime)
lazy val Provided = Configuration.of("Provided", "provided")
lazy val Runtime = Configuration.of("Runtime", "runtime") extend (Compile)
@ -67,6 +70,7 @@ object Configurations {
)
/** Returns true if the configuration should be under the influence of scalaVersion. */
@nowarn
private[sbt] def underScalaVersion(c: Configuration): Boolean =
c match {
case Default | Compile | IntegrationTest | Provided | Runtime | Test | Optional |

View File

@ -28,6 +28,7 @@ trait LibraryManagementSyntax
final val Compile = C.Compile
final val Test = C.Test
final val Runtime = C.Runtime
@deprecated("Create a separate subproject for testing instead", "1.9.0")
final val IntegrationTest = C.IntegrationTest
final val Default = C.Default
final val Provided = C.Provided

View File

@ -1 +1 @@
sbt.version=1.7.0
sbt.version=1.8.2