mirror of
https://github.com/sbt/sbt.git
synced 2026-08-22 06:07:24 +02:00
Merge branch 'develop' into fix/8741-dependency-lock-file-url
This commit is contained in:
@@ -4373,6 +4373,7 @@ object Classpaths {
|
|||||||
val sbtMavenSnapshots: MavenRepository =
|
val sbtMavenSnapshots: MavenRepository =
|
||||||
MavenRepository("sbt-maven-snapshot", Resolver.SbtRepositoryRoot + "/" + "maven-snapshots/")
|
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 =
|
def modifyForPlugin(plugin: Boolean, dep: ModuleID): ModuleID =
|
||||||
if (plugin) dep.withConfigurations(Some(Provided.name)) else dep
|
if (plugin) dep.withConfigurations(Some(Provided.name)) else dep
|
||||||
|
|
||||||
@@ -4382,11 +4383,10 @@ object Classpaths {
|
|||||||
org: String,
|
org: String,
|
||||||
version: String
|
version: String
|
||||||
): Seq[ModuleID] =
|
): Seq[ModuleID] =
|
||||||
if (auto)
|
if auto then
|
||||||
modifyForPlugin(plugin, ScalaArtifacts.libraryDependency(org, version))
|
if ScalaArtifacts.isScala3(version) then ScalaArtifacts.libraryDependency(org, version) :: Nil
|
||||||
.platform(Platform.jvm) :: Nil
|
else (modifyForPlugin(plugin, ScalaArtifacts.libraryDependency(org, version)): @nowarn) :: Nil
|
||||||
else
|
else Nil
|
||||||
Nil
|
|
||||||
|
|
||||||
def addUnmanagedLibrary: Seq[Setting[?]] =
|
def addUnmanagedLibrary: Seq[Setting[?]] =
|
||||||
Seq((Compile / unmanagedJars) ++= unmanagedScalaLibrary.value)
|
Seq((Compile / unmanagedJars) ++= unmanagedScalaLibrary.value)
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
scalaVersion := "3.8.1"
|
scalaVersion := "3.8.1"
|
||||||
|
publishLocal := {}
|
||||||
|
|||||||
@@ -1,2 +1 @@
|
|||||||
// addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.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")
|
|
||||||
|
|||||||
Reference in New Issue
Block a user