Skip to content

Commit 5efc9ab

Browse files
add Spotless + Maven wrapper (netplex#246)
* add Spotless + Maven wrapper * apply code formatting
1 parent 4b386d4 commit 5efc9ab

File tree

165 files changed

+13645
-12665
lines changed

Some content is hidden

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

165 files changed

+13645
-12665
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
name: json smart formatting
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
formatting:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up JDK
18+
uses: actions/setup-java@v4
19+
with:
20+
java-version: 21
21+
distribution: 'temurin'
22+
cache: 'maven'
23+
24+
- name: Check formatting accessors-smart
25+
run: cd accessors-smart; ./mvnw spotless:check
26+
27+
- name: Check formatting json-smart
28+
run: cd json-smart; ./mvnw spotless:check
29+
30+
- name: Check formatting json-smart-action
31+
run: cd json-smart-action; ./mvnw spotless:check

.github/workflows/json-smart-unit-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
cache: 'maven'
2727

2828
- name: Unit tests accessors-smart
29-
run: cd accessors-smart; mvn -B install; mvn -B clean test
29+
run: cd accessors-smart; ./mvnw -B install; ./mvnw -B clean test
3030

3131
- name: Unit tests json-smart
32-
run: cd json-smart; mvn -B install; mvn -B clean test
32+
run: cd json-smart; ./mvnw -B install; ./mvnw -B clean test
3333

3434
- name: Unit tests json-smart-action
35-
run: cd json-smart-action; mvn -B install; mvn -B clean test
35+
run: cd json-smart-action; ./mvnw -B install; ./mvnw -B clean test
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
wrapperVersion=3.3.2
18+
distributionType=only-script
19+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip

accessors-smart/mvnw

Lines changed: 259 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)