mirror of https://github.com/sbt/sbt.git
Merge branch 'develop' into fix/8741-dependency-lock-file-url
This commit is contained in:
commit
d7cb2c07a0
|
|
@ -4373,6 +4373,7 @@ object Classpaths {
|
|||
val sbtMavenSnapshots: MavenRepository =
|
||||
MavenRepository("sbt-maven-snapshot", Resolver.SbtRepositoryRoot + "/" + "maven-snapshots/")
|
||||
|
||||
@deprecated("no longer true for sbt 2.x", "2.0.0")
|
||||
def modifyForPlugin(plugin: Boolean, dep: ModuleID): ModuleID =
|
||||
if (plugin) dep.withConfigurations(Some(Provided.name)) else dep
|
||||
|
||||
|
|
@ -4382,11 +4383,10 @@ object Classpaths {
|
|||
org: String,
|
||||
version: String
|
||||
): Seq[ModuleID] =
|
||||
if (auto)
|
||||
modifyForPlugin(plugin, ScalaArtifacts.libraryDependency(org, version))
|
||||
.platform(Platform.jvm) :: Nil
|
||||
else
|
||||
Nil
|
||||
if auto then
|
||||
if ScalaArtifacts.isScala3(version) then ScalaArtifacts.libraryDependency(org, version) :: Nil
|
||||
else (modifyForPlugin(plugin, ScalaArtifacts.libraryDependency(org, version)): @nowarn) :: Nil
|
||||
else Nil
|
||||
|
||||
def addUnmanagedLibrary: Seq[Setting[?]] =
|
||||
Seq((Compile / unmanagedJars) ++= unmanagedScalaLibrary.value)
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
scalaVersion := "3.8.1"
|
||||
publishLocal := {}
|
||||
|
|
|
|||
|
|
@ -1,2 +1 @@
|
|||
// addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.1")
|
||||
libraryDependencies += Defaults.sbtPluginExtra("com.github.sbt" % "sbt-pgp" % "2.3.1", "2", "3.8.1")
|
||||
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.1")
|
||||
|
|
|
|||
Loading…
Reference in New Issue