-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run CI with Java 17 and 21 #5874
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,7 +113,8 @@ | |
<awaitility.version>4.2.1</awaitility.version> | ||
<approvaltests.version>23.0.1</approvaltests.version> | ||
<mockito.version>4.11.0</mockito.version> | ||
<spock.version>2.3-groovy-4.0</spock.version> | ||
<mockito-inline.version>4.11.0</mockito-inline.version> | ||
<spock.version>2.4-M4-groovy-4.0</spock.version> | ||
|
||
<conscrypt-openjdk-uber.bundle.version>1.4.2_1</conscrypt-openjdk-uber.bundle.version> | ||
<generex.version>1.0.2</generex.version> | ||
|
@@ -164,8 +165,7 @@ | |
<maven.plugin.plugin.version>3.12.0</maven.plugin.plugin.version> | ||
<gmavenplus-plugin.version>3.0.2</gmavenplus-plugin.version> | ||
<gradle-api-maven-plugin.version>0.0.5</gradle-api-maven-plugin.version> | ||
<jandex.plugin.version>1.2.3</jandex.plugin.version> | ||
<jandex.version>2.4.4.Final</jandex.version> | ||
<jandex.plugin.version>3.1.7</jandex.plugin.version> | ||
<jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version> | ||
<jkube.version>1.16.2</jkube.version> | ||
<sonar-maven-plugin.version>3.11.0.3922</sonar-maven-plugin.version> | ||
|
@@ -903,7 +903,7 @@ | |
<dependency> | ||
<groupId>org.mockito</groupId> | ||
<artifactId>mockito-inline</artifactId> | ||
<version>${mockito.version}</version> | ||
<version>${mockito-inline.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
|
@@ -1095,7 +1095,7 @@ | |
<version>${maven.invoker.plugin.version}</version> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.jboss.jandex</groupId> | ||
<groupId>io.smallrye</groupId> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure if this might cause issues with Quarkus. We need to verify that the Jandex versions are compatible. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure, maybe use jandex directly instead of the plugin? I think that would require adding empty beans.xml files, though… There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just checked and Quarkus is using this Jandex distribution and version, so we should be fine:
|
||
<artifactId>jandex-maven-plugin</artifactId> | ||
<version>${jandex.plugin.version}</version> | ||
<executions> | ||
|
@@ -1107,13 +1107,6 @@ | |
<inherited>true</inherited> | ||
</execution> | ||
</executions> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.jboss</groupId> | ||
<artifactId>jandex</artifactId> | ||
<version>${jandex.version}</version> | ||
</dependency> | ||
</dependencies> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.jacoco</groupId> | ||
|
@@ -1172,7 +1165,7 @@ | |
</plugin> | ||
<!-- Create jandex index for faster performance in environments that use it --> | ||
<plugin> | ||
<groupId>org.jboss.jandex</groupId> | ||
<groupId>io.smallrye</groupId> | ||
<artifactId>jandex-maven-plugin</artifactId> | ||
</plugin> | ||
<plugin> | ||
|
@@ -1581,6 +1574,17 @@ | |
</plugins> | ||
</build> | ||
</profile> | ||
<profile> | ||
<id>java-17</id> | ||
<activation> | ||
<jdk>[17,)</jdk> | ||
</activation> | ||
<properties> | ||
<mockito.version>5.11.0</mockito.version> | ||
<mockito-inline.version>5.2.0</mockito-inline.version> | ||
<karaf.itest.skip>true</karaf.itest.skip> | ||
</properties> | ||
</profile> | ||
<profile> | ||
<id>javadoc-test</id> | ||
<build> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is basically rendering the test useless
This test ensures that the changes in 7a49cce
behave as expected.
It should fail in case the line
is removed.
We need to find some other way to verify this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Open to suggestions, the test breaks on Java 21 but I don't have much context here ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have any more context about how does the test break in 21?
In any case, it's better to disable this test for Java 21 only (
@DisabledOnJre(JAVA_21)
)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, going to disable the test instead, this is the outcome on Java 21:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this is actually something misbehaving in that JDK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test has been failing for me locally as well for a while now.