Skip to content

Commit ff9321f

Browse files
committed
Merge branch 'template' of github.com:ThoughtWorksInc/scala-project-template into HEAD
# Conflicts: # project/build.properties # project/plugins.sbt
2 parents c570cd8 + 1f55938 commit ff9321f

File tree

9 files changed

+41
-26
lines changed

9 files changed

+41
-26
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: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ cache:
1818
directories:
1919
- $HOME/.ivy2/cache
2020
- $HOME/.sbt/boot/
21+
- $HOME/.coursier/
2122

22-
script:
23-
- sbt +test
23+
before_script:
2424

2525
before_deploy:
2626

2727
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
28+
- provider: script
29+
script: sbt ++$TRAVIS_SCALA_VERSION "sonatypeOpen \"Travis Job $TRAVIS_JOB_NAME $TRAVIS_JOB_NUMBER ($TRAVIS_JOB_WEB_URL)\"" publishSigned sonatypeRelease
30+
skip_cleanup: true
31+
on:
32+
all_branches: true
33+
condition: $GITHUB_PERSONAL_ACCESS_TOKEN

deploy.sbt.disabled

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

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: 12 additions & 1 deletion
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")
2+
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")
212

313
addSbtPlugin("com.thoughtworks.sbt-scala-js-map" % "sbt-scala-js-map" % "latest.release")
414

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

project/project/plugins.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.1.0-M13-2")

secret.sbt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
lazy val secret = project.settings(publishArtifact := false).in {
2+
val secretDirectory = file(sourcecode.File()).getParentFile / "secret"
3+
for (token <- sys.env.get("GITHUB_PERSONAL_ACCESS_TOKEN")) {
4+
IO.delete(secretDirectory)
5+
org.eclipse.jgit.api.Git
6+
.cloneRepository()
7+
.setURI("https://github.com/ThoughtWorksInc/tw-data-china-continuous-delivery-password.git")
8+
.setDirectory(secretDirectory)
9+
.setCredentialsProvider(
10+
new org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider(token, "")
11+
)
12+
.call()
13+
.close()
14+
}
15+
secretDirectory
16+
}

0 commit comments

Comments
 (0)