From 04b39c5baf07fa86e42e1a2bcd1497b647100f68 Mon Sep 17 00:00:00 2001 From: "vladimir.bukhtoyarov" Date: Mon, 25 Jul 2022 11:33:11 +0300 Subject: [PATCH] moving main line to java 11 --- README.md | 30 +++++++++---------- .../main/docs/asciidoc/basic/quick-start.adoc | 1 + .../distributed/jcache/coherence.adoc | 1 + .../distributed/jcache/hazelcast.adoc | 1 + .../asciidoc/distributed/jcache/ignite.adoc | 1 + .../distributed/jcache/infinispan.adoc | 2 ++ .../distributed/jcache/jcache-usage.adoc | 1 + .../distributed/jdbc/jdbc-integraions.adoc | 1 + .../asciidoc/distributed/redis/redis.adoc | 1 + 9 files changed, 24 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 1c360c72..ccb5ef69 100644 --- a/README.md +++ b/README.md @@ -91,21 +91,21 @@ Copyright 2015-2021 Vladimir Bukhtoyarov Licensed under the Apache Software License, Version 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``` | | diff --git a/asciidoc/src/main/docs/asciidoc/basic/quick-start.adoc b/asciidoc/src/main/docs/asciidoc/basic/quick-start.adoc index 6788009a..55d30c9c 100644 --- a/asciidoc/src/main/docs/asciidoc/basic/quick-start.adoc +++ b/asciidoc/src/main/docs/asciidoc/basic/quick-start.adoc @@ -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. diff --git a/asciidoc/src/main/docs/asciidoc/distributed/jcache/coherence.adoc b/asciidoc/src/main/docs/asciidoc/distributed/jcache/coherence.adoc index 92ae4ded..a253ae8e 100644 --- a/asciidoc/src/main/docs/asciidoc/distributed/jcache/coherence.adoc +++ b/asciidoc/src/main/docs/asciidoc/distributed/jcache/coherence.adoc @@ -10,6 +10,7 @@ To use ``bucket4j-coherence`` extension you need to add the following dependency {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 ==== Example of Bucket instantiation [source, java] diff --git a/asciidoc/src/main/docs/asciidoc/distributed/jcache/hazelcast.adoc b/asciidoc/src/main/docs/asciidoc/distributed/jcache/hazelcast.adoc index 0f58549e..df2ef8a2 100644 --- a/asciidoc/src/main/docs/asciidoc/distributed/jcache/hazelcast.adoc +++ b/asciidoc/src/main/docs/asciidoc/distributed/jcache/hazelcast.adoc @@ -19,6 +19,7 @@ If you are using a legacy version of Hazelcast ``3.x`` then you need to add the {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 ==== 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, diff --git a/asciidoc/src/main/docs/asciidoc/distributed/jcache/ignite.adoc b/asciidoc/src/main/docs/asciidoc/distributed/jcache/ignite.adoc index 1d915f18..0c5eae9c 100644 --- a/asciidoc/src/main/docs/asciidoc/distributed/jcache/ignite.adoc +++ b/asciidoc/src/main/docs/asciidoc/distributed/jcache/ignite.adoc @@ -22,6 +22,7 @@ To use ``bucket4j-ignite`` extension you need to add following dependency: {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 ==== Example of Bucket instantiation via IgniteProxyManager [source, java] diff --git a/asciidoc/src/main/docs/asciidoc/distributed/jcache/infinispan.adoc b/asciidoc/src/main/docs/asciidoc/distributed/jcache/infinispan.adoc index 6aa05148..cc1c648d 100644 --- a/asciidoc/src/main/docs/asciidoc/distributed/jcache/infinispan.adoc +++ b/asciidoc/src/main/docs/asciidoc/distributed/jcache/infinispan.adoc @@ -19,6 +19,8 @@ If you are using a legacy version of Infinispan ``8.x`` then you need to add the {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 + ==== 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. diff --git a/asciidoc/src/main/docs/asciidoc/distributed/jcache/jcache-usage.adoc b/asciidoc/src/main/docs/asciidoc/distributed/jcache/jcache-usage.adoc index bf40e642..e94dc00e 100644 --- a/asciidoc/src/main/docs/asciidoc/distributed/jcache/jcache-usage.adoc +++ b/asciidoc/src/main/docs/asciidoc/distributed/jcache/jcache-usage.adoc @@ -13,6 +13,7 @@ To use the JCache extension you also need to add the following dependency: {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 JCache expects javax.cache.cache-api to be a provided dependency. Do not forget to add the following dependency: [source, xml] diff --git a/asciidoc/src/main/docs/asciidoc/distributed/jdbc/jdbc-integraions.adoc b/asciidoc/src/main/docs/asciidoc/distributed/jdbc/jdbc-integraions.adoc index ff4f448d..823749ab 100644 --- a/asciidoc/src/main/docs/asciidoc/distributed/jdbc/jdbc-integraions.adoc +++ b/asciidoc/src/main/docs/asciidoc/distributed/jdbc/jdbc-integraions.adoc @@ -78,6 +78,7 @@ To use Bucket4j extension for PostgreSQL you need to add following dependency: {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 ===== Example of Bucket instantiation ---- diff --git a/asciidoc/src/main/docs/asciidoc/distributed/redis/redis.adoc b/asciidoc/src/main/docs/asciidoc/distributed/redis/redis.adoc index d1c3449d..e54b69cf 100644 --- a/asciidoc/src/main/docs/asciidoc/distributed/redis/redis.adoc +++ b/asciidoc/src/main/docs/asciidoc/distributed/redis/redis.adoc @@ -33,6 +33,7 @@ To use ``bucket4j-redis`` extension you need to add following dependency: {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 ==== Example of Bucket instantiation via RedissonBasedProxyManager [source, java]