File tree Expand file tree Collapse file tree 9 files changed +41
-26
lines changed
Expand file tree Collapse file tree 9 files changed +41
-26
lines changed Original file line number Diff line number Diff line change 11target /
22local.sbt
3+ secret /
Original file line number Diff line number Diff line change 1+ version = "1.5.1"
12maxColumn = 120
Original file line number Diff line number Diff 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
2525before_deploy :
2626
2727deploy :
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
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- sbt.version =0.13.17
1+ sbt.version =1.2.8
Original file line number Diff line number Diff line change 1+ addSbtCoursier
Original file line number Diff line number Diff line change 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
313addSbtPlugin(" com.thoughtworks.sbt-scala-js-map" % " sbt-scala-js-map" % " latest.release" )
414
515addSbtPlugin(" org.scala-js" % " sbt-scalajs" % " 0.6.26" )
16+
Original file line number Diff line number Diff line change 1+ addSbtPlugin(" io.get-coursier" % " sbt-coursier" % " 1.1.0-M13-2" )
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments