Skip to content

Commit

Permalink
Merge pull request #414 from eed3si9n/wip/integrationtest
Browse files Browse the repository at this point in the history
Deprecate IntegrationTest
  • Loading branch information
adpi2 committed Apr 25, 2023
2 parents 48dc7b2 + 7d052bd commit b404431
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
package sbt.librarymanagement

import scala.annotation.tailrec
import scala.annotation.{ nowarn, tailrec }
import scala.language.experimental.macros

object Configurations {
Expand All @@ -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
Expand All @@ -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)
Expand Down Expand Up @@ -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 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.7.0
sbt.version=1.8.2

0 comments on commit b404431

Please sign in to comment.