From 8ed3f41ae5671388089f85ab76d3ab2f2324e0db Mon Sep 17 00:00:00 2001 From: Heiko Seeberger Date: Fri, 11 Aug 2017 16:38:28 +0200 Subject: [PATCH] Upgrade to sbt 1.0.0 (#105) --- .travis.yml | 2 +- build.sbt | 5 ++--- project/build.properties | 2 +- project/plugins.sbt | 8 ++++---- src/main/scala/de/heikoseeberger/sbtfresh/Template.scala | 4 ++-- src/sbt-test/sbt-fresh/default/project/test.sbt | 2 -- src/sbt-test/sbt-fresh/default/test | 4 ++-- 7 files changed, 12 insertions(+), 15 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4655935..9e15456 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: scala scala: - - 2.10.6 + - 2.12.3 jdk: - oraclejdk8 diff --git a/build.sbt b/build.sbt index 85d696e..e8636c2 100644 --- a/build.sbt +++ b/build.sbt @@ -46,7 +46,7 @@ lazy val commonSettings = "-unchecked", "-deprecation", "-language:_", - "-target:jvm-1.6", + "-target:jvm-1.8", "-encoding", "UTF-8" ), unmanagedSourceDirectories.in(Compile) := Seq(scalaSource.in(Compile).value), @@ -72,9 +72,8 @@ lazy val scalafmtSettings = ) lazy val sbtScriptedSettings = - scriptedSettings ++ Seq( - scriptedLaunchOpts ++= Vector( + scriptedLaunchOpts ++= Seq( "-Xmx1024M", s"-Dplugin.version=${version.value}" ) diff --git a/project/build.properties b/project/build.properties index 3e8bd1a..1e210d1 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1 +1 @@ -sbt.version = 0.13.15 +sbt.version = 1.0.0 diff --git a/project/plugins.sbt b/project/plugins.sbt index d19a9d3..9a0b5cc 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,10 +1,10 @@ -addSbtPlugin("com.dwijnand" % "sbt-travisci" % "1.1.0") +// addSbtPlugin("com.dwijnand" % "sbt-travisci" % "1.1.0") addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.9.3") addSbtPlugin("com.lucidchart" % "sbt-scalafmt" % "1.10") -addSbtPlugin("de.heikoseeberger" % "sbt-header" % "2.0.0") +addSbtPlugin("de.heikoseeberger" % "sbt-header" % "3.0.0") addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.1") libraryDependencies ++= Seq( - "org.scala-sbt" % "scripted-plugin" % sbtVersion.value, - "org.slf4j" % "slf4j-nop" % "1.7.25" // Needed by sbt-git + "org.scala-sbt" %% "scripted-plugin" % sbtVersion.value, + "org.slf4j" % "slf4j-nop" % "1.7.25" // Needed by sbt-git ) diff --git a/src/main/scala/de/heikoseeberger/sbtfresh/Template.scala b/src/main/scala/de/heikoseeberger/sbtfresh/Template.scala index 8ea1b1c..73d65be 100644 --- a/src/main/scala/de/heikoseeberger/sbtfresh/Template.scala +++ b/src/main/scala/de/heikoseeberger/sbtfresh/Template.scala @@ -24,7 +24,7 @@ private object Template { private val year = now().getYear def buildProperties: String = - """|sbt.version = 0.13.16 + """|sbt.version = 1.0.0 |""".stripMargin def buildSbt(organization: String, @@ -213,7 +213,7 @@ private object Template { s"""|$travisPlugin${wartRemoverPlugin}addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.9.3") |addSbtPlugin("com.lucidchart" % "sbt-scalafmt" % "1.10") - |addSbtPlugin("de.heikoseeberger" % "sbt-header" % "2.0.0") + |addSbtPlugin("de.heikoseeberger" % "sbt-header" % "3.0.0") | |libraryDependencies += "org.slf4j" % "slf4j-nop" % "1.7.25" // Needed by sbt-git |""".stripMargin diff --git a/src/sbt-test/sbt-fresh/default/project/test.sbt b/src/sbt-test/sbt-fresh/default/project/test.sbt index d6b06fe..fdad67d 100644 --- a/src/sbt-test/sbt-fresh/default/project/test.sbt +++ b/src/sbt-test/sbt-fresh/default/project/test.sbt @@ -3,5 +3,3 @@ val pluginVersion = sys.props .getOrElse(sys.error("Sys prop plugin.version must be defined!")) addSbtPlugin("de.heikoseeberger" % "sbt-fresh" % pluginVersion) - -libraryDependencies += "org.eclipse.jgit" % "org.eclipse.jgit" % "4.2.0.201601211800-r" diff --git a/src/sbt-test/sbt-fresh/default/test b/src/sbt-test/sbt-fresh/default/test index 2029825..5a39753 100644 --- a/src/sbt-test/sbt-fresh/default/test +++ b/src/sbt-test/sbt-fresh/default/test @@ -1,7 +1,7 @@ -> fresh organization=org name=acme +> fresh organization=org name=acme setUpTravis=false $ exists .gitignore $ exists .scalafmt.conf -$ exists .travis.yml +# $ exists .travis.yml $ exists build.sbt $ exists LICENSE $ exists NOTICE