-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade sbt to 1.x and other breaking changes (#2)
- Everything upgraded - particularly sbt to 1.x **BREAKING** - Renamed the keys to follow sbt guidelines **BREAKING** - Integrated into travis-ci using sbt-ci-release - added scalafmt
- Loading branch information
Showing
15 changed files
with
100 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,7 @@ project/project/credentials.sbt | |
.worksheet | ||
.idea | ||
.idea_modules/ | ||
|
||
# Metals specific | ||
.bloop | ||
.metals |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version = "2.5.0-RC1" | ||
|
||
maxColumn = 120 | ||
|
||
align = none | ||
align.arrowEnumeratorGenerator = true | ||
|
||
spaces.beforeContextBoundColon = Always | ||
spaces.afterTripleEquals = true | ||
|
||
verticalMultiline.atDefnSite = true | ||
verticalMultiline.arityThreshold = 4 | ||
verticalMultiline.newlineAfterOpenParen = true | ||
|
||
rewrite.rules = [SortImports, SortModifiers] | ||
rewrite.redundantBraces.stringInterpolation = true | ||
|
||
importSelectors = binPack | ||
|
||
trailingCommas = preserve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
language: scala | ||
jdk: openjdk8 | ||
before_install: | ||
- git fetch --tags | ||
stages: | ||
- name: test | ||
- name: release | ||
if: ((branch = master AND type = push) OR (tag IS present)) AND NOT fork | ||
jobs: | ||
include: | ||
# stage="test" if no stage is specified | ||
- name: test | ||
script: sbt scripted | ||
- name: formatting | ||
script: sbt scalafmtCheckAll scalafmtSbtCheck | ||
# run ci-release only if previous stages passed | ||
- stage: release | ||
script: sbt ci-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,32 @@ | ||
inThisBuild( | ||
List( | ||
organization := "org.caoilte", | ||
homepage := Some(url("https://github.com/caoilte/sbt-import-scala-files/")), | ||
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")), | ||
developers := List( | ||
Developer( | ||
"caoilte", | ||
"Caoilte O'Connor", | ||
"[email protected]", | ||
url("https://caoilte.org") | ||
) | ||
) | ||
) | ||
) | ||
|
||
sbtPlugin := true | ||
|
||
name := "sbt-import-scala-files" | ||
|
||
organization := "org.caoilte" | ||
|
||
scalaVersion := "2.10.6" | ||
scalaVersion := "2.12.10" | ||
|
||
libraryDependencies += "com.lihaoyi" %% "fansi" % "0.2.3" | ||
libraryDependencies += "com.lihaoyi" %% "fansi" % "0.2.9" | ||
|
||
ScriptedPlugin.scriptedSettings | ||
enablePlugins(SbtPlugin) | ||
|
||
scriptedLaunchOpts := { scriptedLaunchOpts.value ++ | ||
Seq("-Xmx1024M", "-Dplugin.version=" + version.value) | ||
scriptedLaunchOpts := { | ||
scriptedLaunchOpts.value ++ | ||
Seq("-Xmx1024M", "-Dplugin.version=" + version.value) | ||
} | ||
|
||
scriptedBufferLog := false | ||
|
||
pomExtra in Global := { | ||
<url>https://github.com/caoilte/sbt-import-scala-files/</url> | ||
<licenses> | ||
<license> | ||
<name>Apache 2</name> | ||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
</license> | ||
</licenses> | ||
<scm> | ||
<connection>scm:git:github.com/caoilte/sbt-import-scala-files.git</connection> | ||
<developerConnection>scm:git:git@github.com:caoilte/sbt-import-scala-files.git</developerConnection> | ||
<url>github.com/caoilte/sbt-import-scala-files/</url> | ||
</scm> | ||
<developers> | ||
<developer> | ||
<id>caoilte</id> | ||
<name>Caoilte O'Connor</name> | ||
<url>http://caoilte.org</url> | ||
</developer> | ||
</developers> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=0.13.13 | ||
sbt.version=1.3.9 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.1") | ||
|
||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0") | ||
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.2") | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.3.4") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/sbt-test/sbt-import-scala-files/from-meta-build-and-meta-meta-build/build.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/sbt-test/sbt-import-scala-files/from-meta-build/build.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
version := "0.1" | ||
|
||
scalaVersion := "2.10.6" | ||
scalaVersion := "2.12.10" | ||
|
||
filesToImport := Seq(file("project/MetaBuildConstants.scala")) | ||
importScalaFilesList := Seq(file("project/MetaBuildConstants.scala")) |
This file was deleted.
Oops, something went wrong.