Skip to content

Commit

Permalink
Upgrade to sbt 1.0.0 (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
hseeberger authored Aug 11, 2017
1 parent 72ba07d commit 8ed3f41
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: scala

scala:
- 2.10.6
- 2.12.3

jdk:
- oraclejdk8
Expand Down
5 changes: 2 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -72,9 +72,8 @@ lazy val scalafmtSettings =
)

lazy val sbtScriptedSettings =
scriptedSettings ++
Seq(
scriptedLaunchOpts ++= Vector(
scriptedLaunchOpts ++= Seq(
"-Xmx1024M",
s"-Dplugin.version=${version.value}"
)
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version = 0.13.15
sbt.version = 1.0.0
8 changes: 4 additions & 4 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -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
)
4 changes: 2 additions & 2 deletions src/main/scala/de/heikoseeberger/sbtfresh/Template.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions src/sbt-test/sbt-fresh/default/project/test.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 2 additions & 2 deletions src/sbt-test/sbt-fresh/default/test
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 8ed3f41

Please sign in to comment.