Skip to content

Commit 9a77393

Browse files
authored
Merge pull request #8 from ThoughtWorksInc/dynver
Switch to sbt-dynver
2 parents c570cd8 + 6e2204c commit 9a77393

File tree

13 files changed

+53
-33
lines changed

13 files changed

+53
-33
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
target/
22
local.sbt
3+
secret/

.scalafmt.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
version = "1.5.1"
12
maxColumn = 120

.travis.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ addons:
77

88
language: scala
99

10+
scala:
11+
- "2.10.7"
12+
- "2.11.12"
13+
- "2.12.6"
14+
- "2.13.0-M4"
15+
1016
jdk:
1117
- oraclejdk8
1218

@@ -18,16 +24,16 @@ cache:
1824
directories:
1925
- $HOME/.ivy2/cache
2026
- $HOME/.sbt/boot/
27+
- $HOME/.coursier/
2128

22-
script:
23-
- sbt +test
29+
before_script:
2430

2531
before_deploy:
2632

2733
deploy:
28-
skip_cleanup: true
29-
provider: script
30-
script: sbt "release with-defaults"
31-
on:
32-
condition: -e ./deploy.sbt
33-
all_branches: true
34+
- provider: script
35+
script: sbt ++$TRAVIS_SCALA_VERSION "sonatypeOpen \"Travis Job $TRAVIS_JOB_NAME $TRAVIS_JOB_NUMBER ($TRAVIS_JOB_WEB_URL)\"" publishSigned sonatypeRelease
36+
skip_cleanup: true
37+
on:
38+
all_branches: true
39+
condition: $GITHUB_PERSONAL_ACCESS_TOKEN

build.sbt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
publishArtifact := false
1+
publish / skip := true
22

33
organization in ThisBuild := "com.thoughtworks.extractor"
44

5-
crossScalaVersions in ThisBuild := Seq("2.10.7", "2.11.12", "2.12.6", "2.13.0-M4")
6-
75
lazy val extractor = crossProject in file(".")
86

9-
lazy val extractorJVM = extractor.jvm.addSbtFiles(file("../shared/build.sbt"))
7+
lazy val extractorJVM = extractor.jvm
108

11-
lazy val extractorJS = extractor.js.addSbtFiles(file("../shared/build.sbt"))
9+
lazy val extractorJS = extractor.js
1210

1311
// Workaround for randomly Travis CI fail
1412
parallelExecution in Global := false

deploy.sbt.disabled

Lines changed: 0 additions & 16 deletions
This file was deleted.

js/build.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../shared/build.sbt

jvm/build.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../shared/build.sbt

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=0.13.17
1+
sbt.version=1.2.8

project/coursier.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
addSbtCoursier

project/plugins.sbt

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1-
addSbtPlugin("com.thoughtworks.sbt-best-practice" % "sbt-best-practice" % "1.6.0")
1+
addSbtPlugin("com.thoughtworks.sbt-best-practice" % "sbt-best-practice" % "7.0.1")
22

3-
addSbtPlugin("com.thoughtworks.sbt-scala-js-map" % "sbt-scala-js-map" % "latest.release")
3+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.5")
4+
5+
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "3.3.0+14-76cb6848")
6+
7+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2")
8+
9+
addSbtPlugin("org.lyranthe.sbt" % "partial-unification" % "1.1.2")
10+
11+
addSbtPlugin("com.thoughtworks.example" % "sbt-example" % "6.0.1")
12+
13+
addSbtPlugin("com.thoughtworks.sbt-scala-js-map" % "sbt-scala-js-map" % "4.0.0")
414

515
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.26")
16+

0 commit comments

Comments
 (0)