Skip to content

Commit

Permalink
moving main line to java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-bukhtoyarov committed Jul 25, 2022
1 parent 9f977fe commit 04b39c5
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 15 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,21 +91,21 @@ Copyright 2015-2021 Vladimir Bukhtoyarov
Licensed under the Apache Software License, Version 2.0: <http://www.apache.org/licenses/LICENSE-2.0>.

## Java compatibility matrix
Since July 2022(release 8.0.0) it was decided to migrate Bucket4j to Java 11. It can be bad news for all who get stuck on Java 8 by different reasons. We understand your pain and will provide special builds with dedicated artifacts for java 8 for intermediate period, but keep in mind then probably access to fresh builds of Bucket4j for Java 8 can be moved to a commercial model in the future.
Since July 2022(release 8.0.0) it was decided to migrate Bucket4j to Java 11. It can be bad news for all who get stuck on Java 8 by different reasons. We understand your pain and will provide special builds with dedicated artifacts for java 8 for intermediate period, but keep in mind then probably access to fresh releases of Bucket4j for Java 8 can be moved to a commercial model in the future.

Bellow the compatibility matrix of Bucket4j's maven artefact with different java versions
| JAVA 11 | JAVA 8 | Comments |
| :--- | :---: | :---: |
| ```com.bucket4j:bucket4j-core``` | ```com.bucket4j:bucket4j_jdk8-core``` | |
| ```com.bucket4j:bucket4j-jcache``` | ```com.bucket4j:bucket4j_jdk8-jcache``` | |
| ```com.bucket4j:bucket4j-coherence``` | ```com.bucket4j:bucket4j_jdk8-coherence``` | |
| ```com.bucket4j:bucket4j-hazelcast``` | ```com.bucket4j:bucket4j_jdk8-hazelcast``` | |
| ```com.bucket4j:bucket4j-hazelcast``` | ```com.bucket4j:bucket4j_jdk8-hazelcast``` | |
| ```com.bucket4j:bucket4j-infinispan``` | ```com.bucket4j:bucket4j_jdk8-infinispan``` | |
| Not supported | ```com.bucket4j:bucket4j_jdk8-infinispan-8``` | |
| ```com.bucket4j:bucket4j-redis``` | ```com.bucket4j:bucket4j_jdk8-redis``` | |
| ```com.bucket4j:bucket4j-mysql``` | ```com.bucket4j:bucket4j_jdk8-mysql``` | |
| ```com.bucket4j:bucket4j-postgresql``` | ```com.bucket4j:bucket4j_jdk8-postgresql``` | |
| ```com.bucket4j:bucket4j-caffeine``` | ```com.bucket4j:bucket4j_jdk8-caffeine``` | |
| ```com.bucket4j:bucket4j-bucket4j-dynamodb-sdk-v1``` | ```com.bucket4j:bucket4j_jdk8-dynamodb-sdk-v1``` | |
| JAVA 11 maven artifact | JAVA 8 maven artifact | Comments |
| :--- | :---: | :---: |
| ```com.bucket4j:bucket4j-core``` | ```com.bucket4j:bucket4j_jdk8-core``` | |
| ```com.bucket4j:bucket4j-jcache``` | ```com.bucket4j:bucket4j_jdk8-jcache``` | |
| ```com.bucket4j:bucket4j-coherence``` | ```com.bucket4j:bucket4j_jdk8-coherence``` | |
| ```com.bucket4j:bucket4j-hazelcast``` | ```com.bucket4j:bucket4j_jdk8-hazelcast``` | |
| ```com.bucket4j:bucket4j-hazelcast``` | ```com.bucket4j:bucket4j_jdk8-hazelcast``` | |
| ```com.bucket4j:bucket4j-infinispan``` | ```com.bucket4j:bucket4j_jdk8-infinispan``` | |
| Not supported | ```com.bucket4j:bucket4j_jdk8-infinispan-8``` | Infinispan-8 is not compatible with Java 11 |
| ```com.bucket4j:bucket4j-redis``` | ```com.bucket4j:bucket4j_jdk8-redis``` | |
| ```com.bucket4j:bucket4j-mysql``` | ```com.bucket4j:bucket4j_jdk8-mysql``` | |
| ```com.bucket4j:bucket4j-postgresql``` | ```com.bucket4j:bucket4j_jdk8-postgresql``` | |
| ```com.bucket4j:bucket4j-caffeine``` | ```com.bucket4j:bucket4j_jdk8-caffeine``` | |
| ```com.bucket4j:bucket4j-bucket4j-dynamodb-sdk-v1``` | ```com.bucket4j:bucket4j_jdk8-dynamodb-sdk-v1``` | |

1 change: 1 addition & 0 deletions asciidoc/src/main/docs/asciidoc/basic/quick-start.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ You need to add the dependency to your project as described below in order to be
----
implementation 'com.bucket4j:bucket4j-core:{revnumber}'
----
NOTE: see https://github.com/bucket4j/bucket4j/tree/8.0#java-compatibility-matrix[Java compatibility matrix] if you need for build that is compatible with Java 8

==== Create your first Bucket, limiting the rate of heavy work
Imagine that you have a thread-pool executor and you want to know what your threads are doing at the moment when thread-pool throws RejectedExecutionException.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ To use ``bucket4j-coherence`` extension you need to add the following dependency
<version>{revnumber}</version>
</dependency>
----
NOTE: see https://github.com/bucket4j/bucket4j/tree/8.0#java-compatibility-matrix[Java compatibility matrix] if you need for build that is compatible with Java 8

==== Example of Bucket instantiation
[source, java]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ If you are using a legacy version of Hazelcast ``3.x`` then you need to add the
<version>{revnumber}</version>
</dependency>
----
NOTE: see https://github.com/bucket4j/bucket4j/tree/8.0#java-compatibility-matrix[Java compatibility matrix] if you need for build that is compatible with Java 8

==== General compatibility matrix principles:
* Bucket4j authors do not perform continuous monitoring of new Hazelcast releases. So, there is can be a case when there is no one version of Bucket4j which is compatible with the newly released Hazelcast,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ To use ``bucket4j-ignite`` extension you need to add following dependency:
<version>{revnumber}</version>
</dependency>
----
NOTE: see https://github.com/bucket4j/bucket4j/tree/8.0#java-compatibility-matrix[Java compatibility matrix] if you need for build that is compatible with Java 8

==== Example of Bucket instantiation via IgniteProxyManager
[source, java]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ If you are using a legacy version of Infinispan ``8.x`` then you need to add the
<version>{revnumber}</version>
</dependency>
----
NOTE: see https://github.com/bucket4j/bucket4j/tree/8.0#java-compatibility-matrix[Java compatibility matrix] if you need for build that is compatible with Java 8

==== General compatibility matrix principles::
* Bucket4j authors do not perform continuous monitoring of new Infinispan releases. So, there is can be a case when there is no one version of Bucket4j which is compatible with the newly released Infinispan, just log an issue to https://github.com/bucket4j/bucket4j/issues[bug tracker] in this case, adding support to new version of Infinispan is usually an easy exercise.
* Integrations with legacy versions of Infinispan are not removed without a clear reason. Hence, you are in safety, even you are working in a big enterprise company that does not update its infrastructure frequently because You still get new Bucket4j's features even for legacy Infinispan's releases.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ To use the JCache extension you also need to add the following dependency:
<version>{revnumber}</version>
</dependency>
----
NOTE: see https://github.com/bucket4j/bucket4j/tree/8.0#java-compatibility-matrix[Java compatibility matrix] if you need for build that is compatible with Java 8

JCache expects javax.cache.cache-api to be a provided dependency. Do not forget to add the following dependency:
[source, xml]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ To use Bucket4j extension for PostgreSQL you need to add following dependency:
<version>{revnumber}</version>
</dependency>
----
NOTE: see https://github.com/bucket4j/bucket4j/tree/8.0#java-compatibility-matrix[Java compatibility matrix] if you need for build that is compatible with Java 8

===== Example of Bucket instantiation
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ To use ``bucket4j-redis`` extension you need to add following dependency:
<version>{revnumber}</version>
</dependency>
----
NOTE: see https://github.com/bucket4j/bucket4j/tree/8.0#java-compatibility-matrix[Java compatibility matrix] if you need for build that is compatible with Java 8

==== Example of Bucket instantiation via RedissonBasedProxyManager
[source, java]
Expand Down

0 comments on commit 04b39c5

Please sign in to comment.