File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,34 @@ jobs:
22
22
java-version : 8.0.x
23
23
- name : Verify Format and License
24
24
run : mvn spotless:check
25
+ legacy-build :
26
+ name : Legacy Java ${{ matrix.java }} Maven Test on ${{ matrix.os }}
27
+ strategy :
28
+ matrix :
29
+ java : [ 8.0.x, 11.0.x ]
30
+ os : [ macos-latest, windows-latest, ubuntu-latest ]
31
+ runs-on : ${{ matrix.os }}
32
+ steps :
33
+ - uses : actions/checkout@v3
34
+ - name : Setup Java
35
+ uses : actions/setup-java@v3
36
+ with :
37
+ distribution : ' temurin'
38
+ java-version : ${{ matrix.java }}
39
+ - name : Cache local Maven repository
40
+ uses : actions/cache@v3
41
+ with :
42
+ path : ~/.m2/repository
43
+ key : ${{ runner.os }}-maven-${{ matrix.java }}-${{ hashFiles('pom.xml', '**/pom.xml') }}
44
+ - name : Build with Maven
45
+ run : |
46
+ mvn clean test -q -B -Pcompatibility-before-java17 --define=org.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
25
47
build :
26
48
name : Java ${{ matrix.java }} Maven Test on ${{ matrix.os }}
27
49
strategy :
28
50
matrix :
29
51
# Test against the LTS Java versions. TODO: add JDK18 when it becomes available.
30
- java : [ 8.0.x, 11.0.x, 17.0.x ]
52
+ java : [ 17.0.x ]
31
53
os : [ macos-latest, windows-latest, ubuntu-latest ]
32
54
runs-on : ${{ matrix.os }}
33
55
steps :
Original file line number Diff line number Diff line change @@ -561,5 +561,21 @@ limitations under the License.
561
561
<module >fluent-gen</module >
562
562
</modules >
563
563
</profile >
564
+ <profile >
565
+ <id >compatibility-before-java17</id >
566
+ <modules >
567
+ <module >util</module >
568
+ <module >kubernetes</module >
569
+ <module >proto</module >
570
+ <module >extended</module >
571
+ <module >fluent</module >
572
+ <module >spring</module >
573
+ <module >e2e</module >
574
+ <module >examples</module >
575
+ <module >client-java-contrib/cert-manager</module >
576
+ <module >client-java-contrib/prometheus-operator</module >
577
+ <module >client-java-contrib/admissionreview</module >
578
+ </modules >
579
+ </profile >
564
580
</profiles >
565
581
</project >
You can’t perform that action at this time.
0 commit comments