Merge pull request #8167 from unkarjedy/1.11.x

fix: do not treat values "1.x" of "pluginCrossBuild/sbtBinaryVersion" as sbt 2 (fixes #8166)
This commit is contained in:
eugene yokota 2025-06-19 17:10:22 -04:00 committed by GitHub
commit f37aea07b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2996,7 +2996,7 @@ object Classpaths {
private lazy val packagedDefaultArtifacts = packaged(defaultArtifactTasks)
private lazy val sbt2Plus: Def.Initialize[Boolean] = Def.setting {
val sbtV = (pluginCrossBuild / sbtBinaryVersion).value
sbtV != "1.0" && !sbtV.startsWith("0.")
!sbtV.startsWith("1.") && !sbtV.startsWith("0.")
}
val jvmPublishSettings: Seq[Setting[_]] = Seq(
artifacts := artifactDefs(defaultArtifactTasks).value,