Skip to content

Commit eb271ac

Browse files
authored
Merge branch 'master' into patch-1
2 parents 7edae7c + fd4a258 commit eb271ac

File tree

344 files changed

+3525
-5130
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

344 files changed

+3525
-5130
lines changed

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# Scala Steward: Reformat with scalafmt 3.7.5
22
d8a77dfb017feae820e38eea0d7b5128b13a737d
3+
4+
# Scala Steward: Reformat with scalafmt 3.8.3
5+
1b7c658737faa53ec506fb403892320773282488

.github/workflows/ci.yml

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,28 @@ env:
1515
JDK_JAVA_OPTIONS: -Xms6G -Xmx6G -XX:+UseG1GC --add-exports java.base/sun.nio.ch=ALL-UNNAMED
1616

1717
jobs:
18+
scalafmt:
19+
timeout-minutes: 15
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/[email protected]
23+
- name: Cache sbt
24+
uses: actions/cache@v4
25+
with:
26+
path: |
27+
~/.cache/coursier
28+
~/.sbt
29+
key: ${{ runner.os }}-${{matrix.scala}}-${{matrix.module}}-${{ hashFiles('**/build.sbt') }}
30+
31+
- name: Setup Java
32+
uses: actions/[email protected]
33+
with:
34+
distribution: temurin
35+
java-version: '17'
36+
check-latest: true
37+
- name: Check scalafmt
38+
run: sbt 'scalafmtCheckAll' # https://scalameta.org/scalafmt/docs/installation.html#task-keys
39+
1840
build:
1941
runs-on: ubuntu-latest
2042

@@ -55,17 +77,17 @@ jobs:
5577
name: Build ${{matrix.scala_short_dot}} - ${{matrix.module}}
5678

5779
steps:
58-
- uses: actions/checkout@v4.0.0
80+
- uses: actions/checkout@v4.2.2
5981
- name: Cache sbt
60-
uses: actions/cache@v3
82+
uses: actions/cache@v4
6183
with:
6284
path: |
6385
~/.cache/coursier
6486
~/.sbt
6587
key: ${{ runner.os }}-${{matrix.scala}}-${{matrix.module}}-${{ hashFiles('**/build.sbt') }}
6688

67-
- name: Setup Java and Scala
68-
uses: actions/setup-java@v3.12.0
89+
- name: Setup Java
90+
uses: actions/setup-java@v4.5.0
6991
with:
7092
distribution: temurin
7193
java-version: '17'
@@ -86,12 +108,12 @@ jobs:
86108
CI_RELEASE: publishSigned # By default, sbt-ci-release uses the `+publishSigned` which is publishing for all the Scala versions configured, which is not what we want
87109
CI_SNAPSHOT_RELEASE: publish # By default, sbt-ci-release uses the `+publish` which is publishing for all the Scala versions configured, which is not what we want
88110
steps:
89-
- uses: actions/checkout@v4.0.0
90-
- name: Setup Java and Scala
91-
uses: actions/setup-java@v3.12.0
111+
- uses: actions/checkout@v4.2.2
112+
- name: Setup Java
113+
uses: actions/setup-java@v4.5.0
92114
with:
93115
distribution: temurin
94-
java-version: '17'
116+
java-version: '11'
95117
check-latest: true
96118
- run: |
97119
sbt ++2.12.x -Dquill.scala.version=2.12.x -Dquill.macro.log=false ci-release
@@ -100,5 +122,5 @@ jobs:
100122
env:
101123
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
102124
PGP_SECRET: ${{ secrets.PGP_SECRET }}
103-
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
104-
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
125+
SONATYPE_PASSWORD: ${{ secrets.GETQUILL_SONATYPE_TOKEN_PASSWORD }}
126+
SONATYPE_USERNAME: ${{ secrets.GETQUILL_SONATYPE_TOKEN_USER }}

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ jobs:
88
update_release_draft:
99
runs-on: ubuntu-20.04
1010
steps:
11-
- uses: release-drafter/release-drafter@v5
11+
- uses: release-drafter/release-drafter@v6
1212
env:
1313
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/scala-steward.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Scala Steward
1414
steps:
1515
- name: Scala Steward
16-
uses: scala-steward-org/scala-steward-action@v2.61.0
16+
uses: scala-steward-org/scala-steward-action@v2.71.0
1717
with:
1818
github-app-id: ${{ secrets.SCALA_STEWARD_GITHUB_APP_ID }}
1919
github-app-installation-id: ${{ secrets.SCALA_STEWARD_GITHUB_APP_INSTALLATION_ID }}

.github/workflows/site.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
if: ${{ github.event_name == 'pull_request' }}
1919
steps:
2020
- name: Git Checkout
21-
uses: actions/checkout@v3.3.0
21+
uses: actions/checkout@v4.2.2
2222
with:
2323
fetch-depth: '0'
2424
- name: Setup Scala
25-
uses: actions/setup-java@v3.9.0
25+
uses: actions/setup-java@v4.5.0
2626
with:
2727
distribution: temurin
2828
java-version: 17
@@ -39,11 +39,11 @@ jobs:
3939
if: ${{ ((github.event_name == 'release') && (github.event.action == 'published')) || (github.event_name == 'workflow_dispatch') }}
4040
steps:
4141
- name: Git Checkout
42-
uses: actions/checkout@v3.3.0
42+
uses: actions/checkout@v4.2.2
4343
with:
4444
fetch-depth: '0'
4545
- name: Setup Scala
46-
uses: actions/setup-java@v3.9.0
46+
uses: actions/setup-java@v4.5.0
4747
with:
4848
distribution: temurin
4949
java-version: 17
@@ -63,12 +63,12 @@ jobs:
6363
if: ${{ (github.event_name == 'push') || ((github.event_name == 'release') && (github.event.action == 'published')) }}
6464
steps:
6565
- name: Git Checkout
66-
uses: actions/checkout@v3.3.0
66+
uses: actions/checkout@v4.2.2
6767
with:
6868
ref: ${{ github.head_ref }}
6969
fetch-depth: '0'
7070
- name: Setup Scala
71-
uses: actions/setup-java@v3.9.0
71+
uses: actions/setup-java@v4.5.0
7272
with:
7373
distribution: temurin
7474
java-version: 17
@@ -82,7 +82,7 @@ jobs:
8282
git add README.md
8383
git commit -m "Update README.md" || echo "No changes to commit"
8484
- name: Create Pull Request
85-
uses: peter-evans/create-pull-request@v4.2.3
85+
uses: peter-evans/create-pull-request@v7.0.5
8686
with:
8787
body: |-
8888
Autogenerated changes after running the `sbt docs/generateReadme` command of the [zio-sbt-website](https://zio.dev/zio-sbt) plugin.

.scalafmt.conf

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
1-
version = "3.7.14"
2-
maxColumn = 120
1+
version = "3.8.3"
2+
maxColumn = 240
33
align.preset = most
44
align.multiline = false
55
continuationIndent.defnSite = 2
66
assumeStandardLibraryStripMargin = true
77
docstrings.style = Asterisk
88
docstrings.wrapMaxColumn = 80
99
lineEndings = preserve
10-
includeCurlyBraceInSelectChains = false
1110
danglingParentheses.preset = true
1211
optIn.annotationNewlines = true
1312
newlines.alwaysBeforeMultilineDef = false
1413
runner.dialect = scala213
1514
rewrite.rules = [RedundantBraces]
1615

16+
# If I've inserted extra newlines I know what I'm doing, don't wrap them back.
17+
newlines.source = keep
18+
19+
# Don't change braces in one-liners to parens e.g. don't change this: `test("foo") { assertEquals(x,y) }`
20+
# to this `test("foo")(assertEquals(x,y))`. The `rewrite.rules = [RedundantBraces]` will introduce this behavior
21+
# unless you add the below option.
22+
rewrite.redundantBraces.parensForOneLineApply = false
23+
1724
project.excludePaths = ["glob:**/scalafix/input/**", "glob:**/scalafix/output/**"]
1825

1926
rewrite.redundantBraces.generalExpressions = false

0 commit comments

Comments
 (0)