Skip to content

Commit d40e81c

Browse files
committed
Updated maven
1 parent 8d5a6ca commit d40e81c

File tree

5 files changed

+24
-3
lines changed

5 files changed

+24
-3
lines changed

.github/workflows/workflow-main.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,11 @@ jobs:
1919
with:
2020
java-version: '11'
2121
distribution: 'adopt'
22+
- name: Cache Maven packages
23+
uses: actions/cache@v2
24+
with:
25+
path: ~/.m2
26+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
27+
restore-keys: ${{ runner.os }}-m2
2228
- name: Run Build
23-
run: mvn -B clean install
29+
run: mvn --batch-mode clean install

.github/workflows/workflow-release.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,16 @@ jobs:
1717
with:
1818
java-version: '11'
1919
distribution: 'adopt'
20+
- name: Cache Maven packages
21+
uses: actions/cache@v2
22+
with:
23+
path: ~/.m2
24+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
25+
restore-keys: ${{ runner.os }}-m2
2026
- name: Maven Build
2127
run: mvn clean install
2228
- name: Publish package
23-
run: mvn --batch-mode deploy
29+
run: mvn --batch-mode clean install
2430
env:
2531
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2632
- name: Set up Docker Buildx

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Dockerfile
21
FROM adoptopenjdk:11-jre-hotspot
32
ARG JAR_FILE=target/*.jar
43
COPY ${JAR_FILE} app.jar

pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,16 @@
9898
</execution>
9999
</executions>
100100
</plugin>
101+
<plugin>
102+
<groupId>org.apache.maven.plugins</groupId>
103+
<artifactId>maven-surefire-plugin</artifactId>
104+
<version>2.18.1</version>
105+
<configuration>
106+
<includes>
107+
<include>**/*Test*.*</include>
108+
</includes>
109+
</configuration>
110+
</plugin>
101111
</plugins>
102112
</build>
103113

0 commit comments

Comments
 (0)