Skip to content

Commit 95ec435

Browse files
authored
Merge pull request #2 from bspk/maven-workflow
Add maven test
2 parents 779c451 + 1d540f2 commit 95ec435

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

.github/workflows/maven.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: Java CI with Maven
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
branches: [ main ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up JDK 11
20+
uses: actions/setup-java@v3
21+
with:
22+
java-version: '11'
23+
distribution: 'temurin'
24+
cache: maven
25+
- name: Build with Maven
26+
run: mvn -B package --file pom.xml

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<description>HTTP Message Signature implementaiton.</description>
88
<url>https://github.com/bspk/httpsig-java</url>
99
<properties>
10-
<java.version>14</java.version>
11-
<maven.compiler.source>14</maven.compiler.source>
12-
<maven.compiler.target>14</maven.compiler.target>
10+
<java.version>11</java.version>
11+
<maven.compiler.source>11</maven.compiler.source>
12+
<maven.compiler.target>11</maven.compiler.target>
1313
</properties>
1414
<scm>
1515
<connection>scm:git:https://github.com/bspk/httpsig-java.git</connection>

0 commit comments

Comments
 (0)