Skip to content

Commit

Permalink
restore "compile-time" keeping it deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
satorg committed Oct 27, 2023
1 parent 2d48ebb commit 8f16fcc
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ package org.typelevel.sbt

import org.typelevel.sbt.kernel.GitHelper
import org.typelevel.sbt.kernel.V
import sbt.Keys._
import sbt._
import sbt.plugins.JvmPlugin

import Keys._
import scala.annotation.nowarn

object TypelevelKernelPlugin extends AutoPlugin {

Expand All @@ -30,7 +31,7 @@ object TypelevelKernelPlugin extends AutoPlugin {

object autoImport {
@deprecated("use `Provided` instead", "0.6.1")
lazy val CompileTime: Configuration = Provided
lazy val CompileTime: Configuration = config("compile-time").hide

lazy val tlIsScala3 = settingKey[Boolean]("True if building with Scala 3")

Expand Down Expand Up @@ -80,6 +81,12 @@ object TypelevelKernelPlugin extends AutoPlugin {
}
)

@nowarn("cat=deprecation")
override def projectSettings = Seq(
ivyConfigurations += CompileTime,
Compile / unmanagedClasspath ++= update.value.select(configurationFilter(CompileTime.name))
)

private[sbt] def mkCommand(commands: List[String]): String = commands.mkString("; ", "; ", "")

private[sbt] lazy val currentRelease: Def.Initialize[Option[String]] = Def.setting {
Expand Down

0 comments on commit 8f16fcc

Please sign in to comment.