Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update template #132

Merged
merged 32 commits into from
Jan 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
b4969d0
Add runner.dialect and update scalafmt version
Atry Nov 17, 2021
a29a0e3
Update sbt-best-practice to 8.2.1
Atry Dec 6, 2021
9f9cf58
Set maxColumn to 80
Atry Dec 7, 2021
a353ce6
Update .gitignore
Atry Dec 8, 2021
74ed2d7
Update Scala to 2.12.15
Atry Dec 27, 2021
e28acdb
Ignore *.scala.semanticdb
Atry Feb 6, 2022
1002275
Update .gitignore
Atry Mar 17, 2022
5ece74c
Use Temurin JDK
Atry Mar 19, 2022
d93376a
Update sbt to 1.7.3
Atry Jan 9, 2023
e4b2a1a
Update sbt-best-practice to 8.2.4
Atry Jan 9, 2023
0bb0dcd
Set default Scalafmt dialect to scala212source3
Atry Jan 9, 2023
9a891e1
Update GitHub Action versions
Atry Jan 9, 2023
0647cdd
Create scala-steward.yml
Atry Jan 10, 2023
e27f684
Let scala-steward update the current branch
Atry Jan 10, 2023
cb5b02b
Update scalafmt-core to 3.1.2 in template
github-actions[bot] Jan 10, 2023
fb6cfb8
Reformat with scalafmt 3.1.2
github-actions[bot] Jan 10, 2023
32568fb
Add 'Reformat with scalafmt 3.1.2' to .git-blame-ignore-revs
github-actions[bot] Jan 10, 2023
d5b311a
Merge pull request #28 from ThoughtWorksInc/update/template/scalafmt-…
Atry Jan 10, 2023
a76dee3
Update scalafmt-core to 3.6.1 in template (#30)
Atry Jan 10, 2023
94992e0
Update sbt-sonatype to 3.9.15 in template (#29)
github-actions[bot] Jan 10, 2023
01e962f
Update sbt to 1.8.2 in template (#27)
github-actions[bot] Jan 10, 2023
b1c6eed
Update sbt-example to 7.0.1 in template (#26)
github-actions[bot] Jan 10, 2023
ac53026
Update sbt-pgp to 1.1.2-1 in template (#25)
github-actions[bot] Jan 10, 2023
75fd5ee
Update sbt-dynver to 4.1.1 in template (#24)
github-actions[bot] Jan 10, 2023
5240d42
Update sbt-example to 9.2.1 in template (#32)
Atry Jan 10, 2023
ec457ef
Update sbt-pgp to 2.1.1 in template (#31)
Atry Jan 10, 2023
7846934
Update sbt-pgp to 2.1.2 in template (#33)
Atry Jan 10, 2023
b531301
Update sbt-pgp to 2.2.1 in template (#34)
Atry Jan 10, 2023
8bd4b57
Update scala-steward.yml
Atry Jan 10, 2023
2d4d899
Update scala.yml
Atry Jan 10, 2023
b78f28d
Update scala.yml
Atry Jan 10, 2023
3211fc0
Merge branch 'main' into template
Atry Jan 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Scala Steward: Reformat with scalafmt 3.1.2
fb6cfb8aea15a1b339e3ed69e1e96acd7df4cae6
19 changes: 19 additions & 0 deletions .github/workflows/scala-steward.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
push:
branches-ignore:
- 'update/**'
schedule:
- cron: '0 0 * * 0'

name: Launch Scala Steward

jobs:
scala-steward:
runs-on: ubuntu-22.04
name: Launch Scala Steward
steps:
- name: Launch Scala Steward
uses: scala-steward-org/scala-steward-action@v2
with:
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN || github.token }}
branches: ${{ github.ref_name }}
12 changes: 7 additions & 5 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Scala CI

on:
push:
branches-ignore:
- 'update/**'
pull_request:

jobs:
Expand All @@ -25,16 +27,16 @@ jobs:
sbt-args: ''

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Need the git history for sbt-dynver to determine the version
- name: Set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
distribution: temurin
- name: Cache SBT
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.ivy2/local/
Expand All @@ -49,5 +51,5 @@ jobs:
- name: Publish to Maven Central Repository
env:
GITHUB_PERSONAL_ACCESS_TOKEN: ${{secrets.PERSONAL_ACCESS_TOKEN}}
if: ${{ env.GITHUB_PERSONAL_ACCESS_TOKEN != '' }}
if: ${{ env.GITHUB_PERSONAL_ACCESS_TOKEN != '' && github.event_name != 'pull_request' }}
run: sbt ${{matrix.sbt-args}} ++${{ matrix.scala }} "set every Seq(sonatypeSessionName := \"${{github.workflow}} ${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}-$$ ${{ matrix.scala }}\", publishTo := sonatypePublishToBundle.value)" publishSigned sonatypeBundleRelease
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ secret/
.metals/
.bloop/
metals.sbt
.bsp/sbt.json
.bsp/
.vscode/launch.json
*.scala.semanticdb
4 changes: 3 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
addSbtPlugin("com.thoughtworks.sbt-best-practice" % "sbt-best-practice" % "8.2.4")
addSbtPlugin(
"com.thoughtworks.sbt-best-practice" % "sbt-best-practice" % "8.2.4"
)

addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.15")

Expand Down
9 changes: 7 additions & 2 deletions secret.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@ lazy val secret = {
IO.delete(secretDirectory)
org.eclipse.jgit.api.Git
.cloneRepository()
.setURI("https://github.com/ThoughtWorksInc/tw-data-china-continuous-delivery-password.git")
.setURI(
"https://github.com/ThoughtWorksInc/tw-data-china-continuous-delivery-password.git"
)
.setDirectory(secretDirectory)
.setCredentialsProvider(
new org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider(token, "")
new org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider(
token,
""
)
)
.call()
.close()
Expand Down