Skip to content

Commit b98c89d

Browse files
authored
Merge pull request #96 from jamezp/test-on-java-22
Add testing for Java 22 and updated the annotation processing compile…
2 parents f677293 + a2ad538 commit b98c89d

File tree

2 files changed

+47
-2
lines changed

2 files changed

+47
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
os: [ubuntu-latest, windows-latest]
27-
java: ['11', '17', '21-ea']
27+
java: ['11', '17', '21', '22-ea']
2828

2929
steps:
3030
- uses: actions/checkout@v4
@@ -35,7 +35,7 @@ jobs:
3535
distribution: 'temurin'
3636
cache: 'maven'
3737
- name: Build and Test on ${{ matrix.java }}
38-
run: mvn clean -U -B install
38+
run: mvn clean -U -B install -fae
3939
- uses: actions/upload-artifact@v3
4040
if: failure()
4141
with:

processor/pom.xml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,27 @@
101101
<compilerArgument>-proc:none</compilerArgument>
102102
</configuration>
103103
</execution>
104+
<execution>
105+
<id>test-compile</id>
106+
<phase>test-compile</phase>
107+
<goals>
108+
<goal>testCompile</goal>
109+
</goals>
110+
<configuration>
111+
<annotationProcessorPaths>
112+
<path>
113+
<groupId>${project.groupId}</groupId>
114+
<artifactId>${project.artifactId}</artifactId>
115+
<version>${project.version}</version>
116+
</path>
117+
<path>
118+
<groupId>org.jboss.logging</groupId>
119+
<artifactId>jboss-logging</artifactId>
120+
<version>${version.org.jboss.logging}</version>
121+
</path>
122+
</annotationProcessorPaths>
123+
</configuration>
124+
</execution>
104125
<!-- Define that asciidoc reports should be generated -->
105126
<execution>
106127
<id>test-compile-adoc</id>
@@ -115,6 +136,18 @@
115136
<arg>-Aorg.jboss.logging.tools.report.title=Test Title</arg>
116137
<arg>-Aorg.jboss.logging.tools.expressionProperties=${expression.properties.path}</arg>
117138
</compilerArgs>
139+
<annotationProcessorPaths>
140+
<path>
141+
<groupId>${project.groupId}</groupId>
142+
<artifactId>${project.artifactId}</artifactId>
143+
<version>${project.version}</version>
144+
</path>
145+
<path>
146+
<groupId>org.jboss.logging</groupId>
147+
<artifactId>jboss-logging</artifactId>
148+
<version>${version.org.jboss.logging}</version>
149+
</path>
150+
</annotationProcessorPaths>
118151
</configuration>
119152
</execution>
120153
<!-- Define that XML reports should be generated -->
@@ -131,6 +164,18 @@
131164
<arg>-Aorg.jboss.logging.tools.report.title=Test Title</arg>
132165
<arg>-Aorg.jboss.logging.tools.expressionProperties=${expression.properties.path}</arg>
133166
</compilerArgs>
167+
<annotationProcessorPaths>
168+
<path>
169+
<groupId>${project.groupId}</groupId>
170+
<artifactId>${project.artifactId}</artifactId>
171+
<version>${project.version}</version>
172+
</path>
173+
<path>
174+
<groupId>org.jboss.logging</groupId>
175+
<artifactId>jboss-logging</artifactId>
176+
<version>${version.org.jboss.logging}</version>
177+
</path>
178+
</annotationProcessorPaths>
134179
</configuration>
135180
</execution>
136181
</executions>

0 commit comments

Comments
 (0)