Skip to content

Commit bfeb644

Browse files
authored
refactor: add java8 compile ci (#21)
Signed-off-by: moxiaoying <1159230165@qq.com>
1 parent 306dc13 commit bfeb644

2 files changed

Lines changed: 37 additions & 2 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Copyright 2024 OpenFacade Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: java8 compile
16+
on:
17+
push:
18+
branches:
19+
- main
20+
pull_request:
21+
branches:
22+
- main
23+
24+
jobs:
25+
java8_compile:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- name: Set up Maven Central Repository
30+
uses: actions/setup-java@v4
31+
with:
32+
java-version: '8'
33+
distribution: 'temurin'
34+
- name: compile
35+
run: mvn -B clean package -Dmaven.test.skip=true

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
</modules>
1818

1919
<properties>
20-
<maven.compiler.source>17</maven.compiler.source>
21-
<maven.compiler.target>17</maven.compiler.target>
20+
<maven.compiler.source>8</maven.compiler.source>
21+
<maven.compiler.target>8</maven.compiler.target>
2222
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2323
<src.dir>src/main/java</src.dir>
2424
<!-- dependency -->

0 commit comments

Comments
 (0)