Skip to content

Commit

Permalink
Community compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
wode490390 committed Dec 6, 2023
1 parent 13e7fc0 commit 9d14ab9
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Java CI

on:
push:
workflow_dispatch:

jobs:
build:
name: Java ${{ matrix.java }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java:
[
8,
17,
21,
]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: temurin
cache: maven
- name: Build with Maven
run: mvn -B clean package
16 changes: 14 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
</modules>

<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.build.timestamp.format>HHmm-ddMMyyyy</maven.build.timestamp.format>
<netty.version>4.1.100.Final</netty.version>
Expand Down Expand Up @@ -149,6 +149,18 @@
</build>

<profiles>
<profile>
<id>java17</id>

<activation>
<jdk>17</jdk>
</activation>

<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>
</profile>
<profile>
<id>java21</id>

Expand Down

0 comments on commit 9d14ab9

Please sign in to comment.