Skip to content

Commit

Permalink
Require at least Java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
acogoluegnes committed Nov 27, 2024
1 parent d541aba commit 20f52e0
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 51 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
distribution: 'temurin'
java-version: '21'
cache: 'maven'
- name: Publish Documentation
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
distribution: 'temurin'
java-version: '21'
cache: 'maven'
server-id: ossrh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
java-version: '11'
cache: 'maven'
server-id: ${{ env.maven_server_id }}
server-username: MAVEN_USERNAME
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sanity-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
distribution: 'temurin'
java-version: '11'
cache: 'maven'
- name: Start broker
run: ci/start-broker.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
distribution: 'temurin'
java-version: '21'
cache: 'maven'
- name: Start broker
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-rabbitmq-alphas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
distribution: 'temurin'
java-version: '21'
cache: 'maven'
- name: Start broker
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-supported-java-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
distribution: [ 'temurin' ]
version: [ '8', '11', '17', '21', '23', '24-ea' ]
version: [ '11', '17', '21', '23', '24-ea' ]
include:
- distribution: 'semeru'
version: '17'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
distribution: 'temurin'
java-version: '21'
cache: 'maven'
server-id: ossrh
Expand Down
4 changes: 2 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ See the https://www.rabbitmq.com/client-libraries/java-versions[RabbitMQ Java li

=== Pre-requisites

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

=== Dependencies

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

== Build Instructions

You need JDK 8 or later installed.
You need JDK 11 or later installed.

To build the JAR file:

Expand Down
38 changes: 1 addition & 37 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.plugin.version}</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<release>11</release>
<compilerArgs>
<arg>-Xlint:deprecation</arg>
<arg>-Xlint:unchecked</arg>
Expand Down Expand Up @@ -678,16 +677,6 @@
</repository>
</distributionManagement>
</profile>
<profile>
<id>mockito-4-on-java-8</id>
<activation>
<jdk>1.8</jdk>
</activation>
<properties>
<mockito.version>4.11.0</mockito.version>
<test-arguments>-Xshare:off</test-arguments>
</properties>
</profile>
<profile>
<id>jvm-test-arguments-below-java-21</id>
<activation>
Expand All @@ -707,31 +696,6 @@
</properties>
</profile>

<profile>
<!-- this avoids a compiler warning on Java 9+ -->
<!-- the compiler setting is not available on Java 8 -->
<id>use-release-compiler-argument-on-java-9-or-more</id>
<activation>
<jdk>[9,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.plugin.version}</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<release>8</release>
<compilerArgs>
<arg>-Xlint:deprecation</arg>
<arg>-Xlint:unchecked</arg>
</compilerArgs>
</configuration>
</plugin>
</plugins>
</build>
</profile>

</profiles>

Expand Down
2 changes: 1 addition & 1 deletion src/docs/asciidoc/building.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
== Building the Client

You need JDK 1.8 or more installed.
You need JDK 11 or more installed.

To build the JAR file:

Expand Down
2 changes: 1 addition & 1 deletion src/docs/asciidoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ the https://rabbitmq.com/stream.html[RabbitMQ Stream Plugin].
It allows creating and deleting streams, as well as publishing to and consuming from
these streams. Learn more in the <<overview.adoc#stream-client-overview,client overview>>.

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

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

Expand Down
2 changes: 1 addition & 1 deletion src/docs/asciidoc/overview.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ _These SPI are susceptible to change, but this should have no impact on most app

== Pre-requisites

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

0 comments on commit 20f52e0

Please sign in to comment.