Skip to content

Commit 20f52e0

Browse files
committed
Require at least Java 11
1 parent d541aba commit 20f52e0

13 files changed

+15
-51
lines changed

.github/workflows/publish-documentation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Set up JDK
1212
uses: actions/setup-java@v4
1313
with:
14-
distribution: 'zulu'
14+
distribution: 'temurin'
1515
java-version: '21'
1616
cache: 'maven'
1717
- name: Publish Documentation

.github/workflows/publish-snapshot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Set up JDK
1212
uses: actions/setup-java@v4
1313
with:
14-
distribution: 'zulu'
14+
distribution: 'temurin'
1515
java-version: '21'
1616
cache: 'maven'
1717
server-id: ossrh

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: actions/setup-java@v4
1616
with:
1717
distribution: 'temurin'
18-
java-version: '8'
18+
java-version: '11'
1919
cache: 'maven'
2020
server-id: ${{ env.maven_server_id }}
2121
server-username: MAVEN_USERNAME

.github/workflows/sanity-check.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
- name: Set up JDK
2424
uses: actions/setup-java@v4
2525
with:
26-
distribution: 'zulu'
27-
java-version: '21'
26+
distribution: 'temurin'
27+
java-version: '11'
2828
cache: 'maven'
2929
- name: Start broker
3030
run: ci/start-broker.sh

.github/workflows/test-pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up JDK
2020
uses: actions/setup-java@v4
2121
with:
22-
distribution: 'zulu'
22+
distribution: 'temurin'
2323
java-version: '21'
2424
cache: 'maven'
2525
- name: Start broker

.github/workflows/test-rabbitmq-alphas.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Set up JDK
2626
uses: actions/setup-java@v4
2727
with:
28-
distribution: 'zulu'
28+
distribution: 'temurin'
2929
java-version: '21'
3030
cache: 'maven'
3131
- name: Start broker

.github/workflows/test-supported-java-versions.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
distribution: [ 'temurin' ]
14-
version: [ '8', '11', '17', '21', '23', '24-ea' ]
14+
version: [ '11', '17', '21', '23', '24-ea' ]
1515
include:
1616
- distribution: 'semeru'
1717
version: '17'

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Set up JDK
2424
uses: actions/setup-java@v4
2525
with:
26-
distribution: 'zulu'
26+
distribution: 'temurin'
2727
java-version: '21'
2828
cache: 'maven'
2929
server-id: ossrh

README.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ See the https://www.rabbitmq.com/client-libraries/java-versions[RabbitMQ Java li
3131

3232
=== Pre-requisites
3333

34-
This library requires at least Java 8, but Java 11 or more is recommended.
34+
This library requires at least Java 11, but Java 21 or more is recommended.
3535

3636
=== Dependencies
3737

@@ -66,7 +66,7 @@ Breaking changes between releases can happen but will be kept to a minimum.
6666

6767
== Build Instructions
6868

69-
You need JDK 8 or later installed.
69+
You need JDK 11 or later installed.
7070

7171
To build the JAR file:
7272

pom.xml

+1-37
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,7 @@
348348
<artifactId>maven-compiler-plugin</artifactId>
349349
<version>${maven.compiler.plugin.version}</version>
350350
<configuration>
351-
<source>1.8</source>
352-
<target>1.8</target>
351+
<release>11</release>
353352
<compilerArgs>
354353
<arg>-Xlint:deprecation</arg>
355354
<arg>-Xlint:unchecked</arg>
@@ -678,16 +677,6 @@
678677
</repository>
679678
</distributionManagement>
680679
</profile>
681-
<profile>
682-
<id>mockito-4-on-java-8</id>
683-
<activation>
684-
<jdk>1.8</jdk>
685-
</activation>
686-
<properties>
687-
<mockito.version>4.11.0</mockito.version>
688-
<test-arguments>-Xshare:off</test-arguments>
689-
</properties>
690-
</profile>
691680
<profile>
692681
<id>jvm-test-arguments-below-java-21</id>
693682
<activation>
@@ -707,31 +696,6 @@
707696
</properties>
708697
</profile>
709698

710-
<profile>
711-
<!-- this avoids a compiler warning on Java 9+ -->
712-
<!-- the compiler setting is not available on Java 8 -->
713-
<id>use-release-compiler-argument-on-java-9-or-more</id>
714-
<activation>
715-
<jdk>[9,)</jdk>
716-
</activation>
717-
<build>
718-
<plugins>
719-
<plugin>
720-
<artifactId>maven-compiler-plugin</artifactId>
721-
<version>${maven.compiler.plugin.version}</version>
722-
<configuration>
723-
<source>1.8</source>
724-
<target>1.8</target>
725-
<release>8</release>
726-
<compilerArgs>
727-
<arg>-Xlint:deprecation</arg>
728-
<arg>-Xlint:unchecked</arg>
729-
</compilerArgs>
730-
</configuration>
731-
</plugin>
732-
</plugins>
733-
</build>
734-
</profile>
735699

736700
</profiles>
737701

src/docs/asciidoc/building.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
== Building the Client
22

3-
You need JDK 1.8 or more installed.
3+
You need JDK 11 or more installed.
44

55
To build the JAR file:
66

src/docs/asciidoc/index.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ the https://rabbitmq.com/stream.html[RabbitMQ Stream Plugin].
1111
It allows creating and deleting streams, as well as publishing to and consuming from
1212
these streams. Learn more in the <<overview.adoc#stream-client-overview,client overview>>.
1313

14-
This library requires at least Java 8, but Java 11 or more is recommended.
14+
This library requires at least Java 11, but Java 21 or more is recommended.
1515

1616
https://github.com/rabbitmq/rabbitmq-stream-perf-test[Stream PerfTest] is a performance testing tool based on this client library.
1717

src/docs/asciidoc/overview.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ _These SPI are susceptible to change, but this should have no impact on most app
107107

108108
== Pre-requisites
109109

110-
This library requires at least Java 8, but Java 11 or more is recommended (CRC calculation uses methods available as of Java 9).
110+
This library requires at least Java 11, but Java 21 or more is recommended.

0 commit comments

Comments
 (0)