Skip to content

Commit 75072cf

Browse files
committed
Merge ../spotless into more-type-annotations
2 parents 70f3824 + 07992fa commit 75072cf

File tree

10 files changed

+144
-219
lines changed

10 files changed

+144
-219
lines changed

.circleci/config.yml

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

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ ij_java_names_count_to_use_import_on_demand = 999
2121

2222
[*.xml.mustache]
2323
indent_style = space
24+
25+
[*.{yml,yaml}]
26+
indent_style = space
27+
indent_size = 2

.github/workflows/ci.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# BUILDCACHE_USER
2+
# BUILDCACHE_PASS
3+
# - rw access to buildcache.diffplug.com
4+
5+
on:
6+
pull_request:
7+
push:
8+
branches: [main]
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
jobs:
13+
sanityCheck:
14+
name: spotlessCheck assemble testClasses
15+
runs-on: ubuntu-latest
16+
env:
17+
buildcacheuser: ${{ secrets.BUILDCACHE_USER }}
18+
buildcachepass: ${{ secrets.BUILDCACHE_PASS }}
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 0
24+
- name: Install JDK 11
25+
uses: actions/setup-java@v3
26+
with:
27+
distribution: "temurin"
28+
java-version: 11
29+
cache: gradle
30+
- name: spotlessCheck
31+
run: ./gradlew spotlessCheck --build-cache
32+
- name: assemble testClasses
33+
run: ./gradlew assemble testClasses --build-cache -PSPOTLESS_EXCLUDE_MAVEN=true
34+
# If this gets resolved, remove the EXCLUDE_MAVEN https://github.com/diffplug/spotless/issues/554
35+
build:
36+
needs: sanityCheck
37+
strategy:
38+
fail-fast: false
39+
matrix:
40+
kind: [maven, gradle]
41+
jre: [8, 11, 17]
42+
os: [ubuntu-latest]
43+
include:
44+
# test windows at the diagonals of the above matrix
45+
- kind: maven
46+
jre: 8
47+
os: windows-latest
48+
- kind: gradle
49+
jre: 17
50+
os: windows-latest
51+
# npm on linux only (crazy slow on windows)
52+
- kind: npm
53+
jre: 8
54+
os: ubuntu-latest
55+
runs-on: ${{ matrix.os }}
56+
steps:
57+
- name: Checkout
58+
uses: actions/checkout@v3
59+
- name: Install JDK ${{ matrix.distribution }} ${{ matrix.java_version }}
60+
uses: actions/setup-java@v3
61+
with:
62+
distribution: "temurin"
63+
java-version: ${{ matrix.jre }}
64+
cache: gradle
65+
- name: build (maven-only)
66+
if: matrix.kind == 'maven'
67+
run: ./gradlew :plugin-maven:build -x spotlessCheck --build-cache
68+
- name: build (everything-but-maven)
69+
if: matrix.kind == 'gradle'
70+
run: ./gradlew build -x spotlessCheck --build-cache -PSPOTLESS_EXCLUDE_MAVEN=true
71+
- name: test npm
72+
if: matrix.kind == 'npm'
73+
run: ./gradlew testNpm --build-cache
74+
- name: junit result
75+
uses: mikepenz/action-junit-report@v3
76+
if: always() # always run even if the previous step fails
77+
with:
78+
check_name: JUnit ${{ matrix.kind }} ${{ matrix.jre }} ${{ matrix.os }}
79+
report_paths: '*/build/test-results/*/TEST-*.xml'

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# GPG_PASSPHRASE
88
# GPG_KEY64 (base64)
99
# gpg --export-secret-keys --armor KEY_ID | openssl base64 | pbcopy
10-
# GRADLE_PORTAL_KEY
11-
# GRADLE_PORTAL_SECRET
10+
# GRADLE_KEY
11+
# GRADLE_SECRET
1212

1313
name: deploy
1414
on:
@@ -49,12 +49,12 @@ jobs:
4949
if: "${{ github.event.inputs.to_publish == 'all' }}"
5050
run: |
5151
./gradlew :changelogPush -Prelease=true --stacktrace --warning-mode all
52-
./gradlew :plugin-gradle:changelogPush -Prelease=true -Pgradle.publish.key=${{ secrets.GRADLE_PORTAL_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_PORTAL_SECRET }} --stacktrace --warning-mode all
52+
./gradlew :plugin-gradle:changelogPush -Prelease=true -Pgradle.publish.key=${{ secrets.GRADLE_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_SECRET }} --stacktrace --warning-mode all
5353
./gradlew :plugin-maven:changelogPush -Prelease=true --stacktrace --warning-mode all
5454
- name: publish just plugin-gradle
5555
if: "${{ github.event.inputs.to_publish == 'plugin-gradle' }}"
5656
run: |
57-
./gradlew :plugin-gradle:changelogPush -Prelease=true -Pgradle.publish.key=${{ secrets.GRADLE_PORTAL_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_PORTAL_SECRET }} --stacktrace --warning-mode all
57+
./gradlew :plugin-gradle:changelogPush -Prelease=true -Pgradle.publish.key=${{ secrets.GRADLE_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_SECRET }} --stacktrace --warning-mode all
5858
- name: publish just plugin-maven
5959
if: "${{ github.event.inputs.to_publish == 'plugin-maven' }}"
6060
run: |

plugin-gradle/CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `3.27.0`).
44

55
## [Unreleased]
6+
7+
## [6.13.0] - 2023-01-14
68
### Added
79
* **POTENTIALLY BREAKING** `ktlint` step now supports `.editorconfig` ([#1442](https://github.com/diffplug/spotless/pull/1442) implements [#142](https://github.com/diffplug/spotless/issues/142))
810
* **POTENTIALLY BREAKING** `ktlint` step now modifies license headers. Make sure to put `licenseHeader` *after* `ktlint`.

0 commit comments

Comments
 (0)