Skip to content

Commit a76384b

Browse files
authored
Merge pull request #4 from ThoughtWorksInc/template
Update template
2 parents 8f51643 + 2474f5b commit a76384b

File tree

9 files changed

+33
-25
lines changed

9 files changed

+33
-25
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ project/plugins/project/
1818

1919
local.sbt
2020
secret/
21+
.metals/
22+
.bloop/

.gitpod.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
image: igeolise/scalajs-test-runner:latest
2+
vscode:
3+
extensions:
4+
- [email protected]:wQBBM+lKILHBqOqlqW60xA==
5+
- [email protected]:pVVu91DEAijx+sPKu8fgHA==

.scalafmt.conf

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

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ scala:
1414
- 2.13.0
1515

1616
jdk:
17-
- oraclejdk8
17+
- openjdk8
1818

1919
before_cache:
2020
- find $HOME/.sbt -name '*.lock' -delete
@@ -32,7 +32,7 @@ before_deploy:
3232

3333
deploy:
3434
- provider: script
35-
script: sbt ++$TRAVIS_SCALA_VERSION "sonatypeOpen \"Travis Job $TRAVIS_JOB_NAME $TRAVIS_JOB_NUMBER ($TRAVIS_JOB_WEB_URL)\"" publishSigned sonatypeRelease
35+
script: sbt ++$TRAVIS_SCALA_VERSION "set every Seq(sonatypeSessionName := \"Travis Job $TRAVIS_JOB_NAME $TRAVIS_JOB_NUMBER ($TRAVIS_JOB_WEB_URL)\", publishTo := sonatypePublishToBundle.value)" publishSigned sonatypeBundleRelease
3636
skip_cleanup: true
3737
on:
3838
all_branches: true

project/build.properties

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

project/coursier.sbt

Lines changed: 0 additions & 1 deletion
This file was deleted.

project/plugins.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
addSbtPlugin("com.thoughtworks.sbt-best-practice" % "sbt-best-practice" % "7.0.1+9-73e78eb9")
1+
addSbtPlugin("com.thoughtworks.sbt-best-practice" % "sbt-best-practice" % "7.1.1")
22

3-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.5")
3+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.8")
44

5-
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "3.3.0+14-76cb6848")
5+
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.0.0")
66

77
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2")
88

project/project/plugins.sbt

Lines changed: 0 additions & 1 deletion
This file was deleted.

secret.sbt

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

0 commit comments

Comments
 (0)