Skip to content

Commit f856ba4

Browse files
authored
Merge branch 'steve-community:master' into TransactionDetails_DataReductionFix
2 parents f13523b + 6cdc22b commit f856ba4

File tree

16 files changed

+717
-61
lines changed

16 files changed

+717
-61
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ updates:
1111
interval: "weekly"
1212
day: "saturday"
1313

14+
- package-ecosystem: "github-actions"
15+
directory: "/"
16+
schedule:
17+
interval: "weekly"

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
matrix:
99
os: [ ubuntu-20.04, ubuntu-22.04 ]
1010
java: [ '11', '17' ]
11-
db: [ 'mysql:5.7', 'mysql:8.0', 'mariadb:10.3', 'mariadb:10.4', 'mariadb:10.5', 'mariadb:10.6' ]
11+
db: [ 'mysql:5.7', 'mysql:8.0', 'mariadb:10.3', 'mariadb:10.4.30', 'mariadb:10.5.21', 'mariadb:10.6.14' ]
1212
runs-on: ${{ matrix.os }}
1313
services:
1414
mysql:
@@ -21,9 +21,9 @@ jobs:
2121
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
2222

2323
steps:
24-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v4
2525
- name: Set up Java ${{ matrix.Java }}
26-
uses: actions/setup-java@v2
26+
uses: actions/setup-java@v3
2727
with:
2828
java-version: ${{ matrix.java }}
2929
distribution: 'temurin'
@@ -39,7 +39,7 @@ jobs:
3939
mysql -h 127.0.0.1 -P 3306 -uroot -proot -e "GRANT SUPER ON *.* TO 'steve'@'%';" -v || true
4040
4141
- name: Build with Maven
42-
run: mvn -B -V -Dmaven.javadoc.skip=true -Ptest clean package --file pom.xml
42+
run: ./mvnw -B -V -Dmaven.javadoc.skip=true -Ptest clean package --file pom.xml
4343

4444
- name: Start the app and visit signin web page
4545
run: |

.github/workflows/review.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ jobs:
55
license-check:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v2
8+
- uses: actions/checkout@v4
99
with:
1010
fetch-depth: 0
1111

1212
- name: Set up Java 11
13-
uses: actions/setup-java@v2
13+
uses: actions/setup-java@v3
1414
with:
1515
java-version: 11
1616
distribution: 'temurin'
@@ -21,15 +21,15 @@ jobs:
2121
pmd:
2222
runs-on: 'ubuntu-latest'
2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525
- uses: actions/setup-java@v3
2626
with:
2727
distribution: 'temurin'
2828
java-version: '17'
2929
- name: Run PMD
3030
uses: pmd/pmd-github-action@v1
3131
with:
32-
version: '6.49.0'
32+
version: 'latest'
3333
sourcePath: './src/main/java'
3434
rulesets: './src/main/resources/maven-pmd-plugin-default.xml'
3535
- name: Fail build if there are violations
@@ -38,7 +38,7 @@ jobs:
3838
checkstyle:
3939
runs-on: 'ubuntu-latest'
4040
steps:
41-
- uses: actions/checkout@v3
41+
- uses: actions/checkout@v4
4242
- uses: actions/setup-java@v3
4343
with:
4444
distribution: 'temurin'

.mvn/wrapper/maven-wrapper.jar

58.5 KB
Binary file not shown.

.mvn/wrapper/maven-wrapper.properties

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
# https://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+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.2/apache-maven-3.9.2-bin.zip
18+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.1/maven-wrapper-3.1.1.jar

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM maven:3.6.1-jdk-11
1+
FROM eclipse-temurin:11-jdk
22

33
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
44

@@ -21,6 +21,6 @@ COPY . /code
2121
# Wait for the db to startup(via dockerize), then
2222
# Build and run steve, requires a db to be available on port 3306
2323
CMD dockerize -wait tcp://mariadb:3306 -timeout 60s && \
24-
mvn clean package -Pdocker -Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2" && \
24+
./mvnw clean package -Pdocker -Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2" && \
2525
java -jar target/steve.jar
2626

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ https://github.com/steve-community/steve/wiki/Charging-Station-Compatibility
3333
SteVe requires
3434
* JDK 11 (both Oracle JDK and Adoptium are supported)
3535
* Maven
36-
* MariaDB 10.2.1 or later. MySQL 5.7.7 or later works as well, but especially MySQL 8 introduces more hassle. We suggest MariaDB 10.4.
36+
* MySQL or MariaDB. You should use [one of these](.github/workflows/main.yml#L11) supported versions.
3737

3838
to build and run.
3939

@@ -92,7 +92,7 @@ SteVe is designed to run standalone, a java servlet container / web server (e.g.
9292
To compile SteVe simply use Maven. A runnable `jar` file containing the application and configuration will be created in the subdirectory `steve/target`.
9393
9494
```
95-
# mvn package
95+
# ./mvnw package
9696
```
9797
9898
5. Run SteVe:

docker-compose.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ volumes:
77
services:
88

99
db:
10-
image: mariadb:10.4
10+
# Pinning MariaDB to point release 10.4.30 works around the issues with the
11+
# database migrations seen with 10.4.31 in issue #1212.
12+
#
13+
# TODO: Get database migrations to work with the latest point releases of
14+
# MariaDB 10.4.
15+
image: mariadb:10.4.30
1116
ports:
1217
- 3306:3306
1318
environment:

k8s/docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM maven:3.6.1-jdk-11
1+
FROM eclipse-temurin:11-jdk
22
MAINTAINER daynnnnn
33

44
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
@@ -21,7 +21,7 @@ RUN sed -i 's|${db.user}|${env.DB_USERNAME}|g' pom.xml
2121
RUN sed -i 's|${db.password}|${env.DB_PASSWORD}|g' pom.xml
2222
RUN sed -i 's|${db.schema}|${env.DB_DATABASE}|g' pom.xml
2323

24-
RUN mvn clean package -Pkubernetes -Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2"
24+
RUN ./mvnw clean package -Pkubernetes -Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2"
2525

2626
CMD java -jar target/steve.jar
2727

0 commit comments

Comments
 (0)