Skip to content

Commit 9de944b

Browse files
committed
chore: remove google code format from build
1 parent fdd8cb5 commit 9de944b

File tree

4 files changed

+8
-62
lines changed

4 files changed

+8
-62
lines changed

.github/workflows/pull-request.yml

+3-30
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,6 @@ jobs:
1111
- uses: actions/checkout@v2
1212
- uses: gradle/wrapper-validation-action@v1
1313

14-
verify-google-java-format:
15-
name: Google Java Format Verification
16-
runs-on: ubuntu-latest
17-
needs: validation
18-
steps:
19-
- name: Checkout
20-
uses: actions/checkout@v2
21-
- name: Setup Java
22-
uses: actions/setup-java@v2
23-
with:
24-
distribution: 'zulu'
25-
java-version: 15
26-
- name: Cache Gradle
27-
uses: actions/cache@v2
28-
env:
29-
java-version: 15
30-
with:
31-
path: |
32-
~/.gradle/caches
33-
~/.gradle/wrapper
34-
key: ${{ runner.os }}-${{ env.java-version }}-gradle-${{ hashFiles('**/*.gradle*') }}
35-
restore-keys: ${{ runner.os }}-${{ env.java-version }}-gradle-
36-
- name: Make gradlew executable
37-
run: chmod +x ./gradlew
38-
- name: Gradle Check
39-
run: ./gradlew --info build -x test
40-
4114
test:
4215
name: Test run
4316
strategy:
@@ -70,11 +43,11 @@ jobs:
7043
run: chmod +x ./gradlew
7144
- name: Gradle Check (non-Windows)
7245
if: matrix.os != 'windows-latest'
73-
run: ./gradlew --info check -x verifyGoogleJavaFormat
46+
run: ./gradlew --info check
7447
- name: Gradle Check (Windows)
7548
if: matrix.os == 'windows-latest'
7649
shell: cmd
77-
run: gradlew --info check -x verifyGoogleJavaFormat
50+
run: gradlew --info check
7851

7952
build:
8053
name: Sonar analysis
@@ -112,4 +85,4 @@ jobs:
11285
env:
11386
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
11487
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
115-
run: ./gradlew build jacocoTestReport sonarqube --info -x verifyGoogleJavaFormat
88+
run: ./gradlew build jacocoTestReport sonarqube --info

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Make gradlew executable
3636
run: chmod +x ./gradlew
3737
- name: Gradle Check
38-
run: ./gradlew --info check -x verifyGoogleJavaFormat
38+
run: ./gradlew --info check
3939

4040
build:
4141
name: Publish release

.github/workflows/snapshot.yml

+3-30
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,6 @@ jobs:
1212
- uses: actions/checkout@v2
1313
- uses: gradle/wrapper-validation-action@v1
1414

15-
verify-google-java-format:
16-
name: Google Java Format Verification
17-
runs-on: ubuntu-latest
18-
needs: validation
19-
steps:
20-
- name: Checkout
21-
uses: actions/checkout@v2
22-
- name: Setup Java
23-
uses: actions/setup-java@v2
24-
with:
25-
distribution: 'zulu'
26-
java-version: 15
27-
- name: Cache Gradle
28-
uses: actions/cache@v2
29-
env:
30-
java-version: 15
31-
with:
32-
path: |
33-
~/.gradle/caches
34-
~/.gradle/wrapper
35-
key: ${{ runner.os }}-${{ env.java-version }}-gradle-${{ hashFiles('**/*.gradle*') }}
36-
restore-keys: ${{ runner.os }}-${{ env.java-version }}-gradle-
37-
- name: Make gradlew executable
38-
run: chmod +x ./gradlew
39-
- name: Gradle Check
40-
run: ./gradlew --info build -x test
41-
4215
test:
4316
name: Test run
4417
needs: validation
@@ -65,7 +38,7 @@ jobs:
6538
- name: Make gradlew executable
6639
run: chmod +x ./gradlew
6740
- name: Gradle Check
68-
run: ./gradlew --info check -x verifyGoogleJavaFormat
41+
run: ./gradlew --info check
6942

7043
build:
7144
name: Publish snapshot
@@ -97,7 +70,7 @@ jobs:
9770
env:
9871
OSS_USER_TOKEN_KEY: ${{ secrets.OSS_USER_TOKEN_KEY }}
9972
OSS_USER_TOKEN_PASS: ${{ secrets.OSS_USER_TOKEN_PASS }}
100-
run: ./gradlew clean build publish -x test -x verifyGoogleJavaFormat
73+
run: ./gradlew clean build publish -x test
10174

10275
sonar:
10376
name: Sonar analysis
@@ -129,4 +102,4 @@ jobs:
129102
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
130103
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
131104
if: env.SONAR_TOKEN != null
132-
run: ./gradlew build jacocoTestReport sonarqube --info -x verifyGoogleJavaFormat
105+
run: ./gradlew build jacocoTestReport sonarqube --info

github-build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ git config --global user.name "GitHub Actions"
4545
echo "Deploying release to Maven Central"
4646
removeSnapshots
4747

48-
./gradlew clean build publish closeAndReleaseRepository -x verifyGoogleJavaFormat
48+
./gradlew clean build publish closeAndReleaseRepository
4949

5050
commitRelease
5151
bumpVersion

0 commit comments

Comments
 (0)