Skip to content

Commit

Permalink
Build plugins with sbt 1.3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault committed May 14, 2020
1 parent b6fb4da commit 1c39749
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 2 additions & 4 deletions modules/sbt-lm-coursier/src/main/scala/sbt/hack/Foo.scala
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ object Foo {
ewo = evictionOptions,
mavenStyle = publishMavenStyle.value,
compatWarning = compatibilityWarningOptions.value,
includeCallers = false,
includeDetails = false,
log = s.log
)
} catch {
Expand All @@ -90,8 +92,6 @@ object Foo {
ewo: EvictionWarningOptions,
mavenStyle: Boolean,
compatWarning: CompatibilityWarningOptions,
includeCallers: Boolean,
includeDetails: Boolean,
log: Logger
): UpdateReport
}].cachedUpdate(
Expand All @@ -110,8 +110,6 @@ object Foo {
ewo = evictionOptions,
mavenStyle = publishMavenStyle.value,
compatWarning = compatibilityWarningOptions.value,
includeCallers = false,
includeDetails = false,
log = s.log
)
}
Expand Down
7 changes: 4 additions & 3 deletions project/Settings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ object Settings {

def scala212 = "2.12.10"

def targetSbtVersion = "1.2.8"
def targetSbtVersion = "1.3.1"

private lazy val isAtLeastScala213 = Def.setting {
import Ordering.Implicits._
Expand Down Expand Up @@ -56,8 +56,9 @@ object Settings {
"-Xmx1024M",
"-Dplugin.name=" + name.value,
"-Dplugin.version=" + version.value,
"-Dsbttest.base=" + (sourceDirectory.value / "sbt-test").getAbsolutePath,
"-Dcoursier.sbt-launcher.add-plugin=false"
"-Dcoursier.sbt-launcher.add-plugin=true",
"-Dcoursier.sbt-launcher.plugin=" + name.value,
"-Dcoursier.sbt-launcher.plugin-version=" + version.value
),
scriptedBufferLog := false,
sbtPlugin := true,
Expand Down

0 comments on commit 1c39749

Please sign in to comment.