Add support for Hazelcast

This commit upgrades to Hazelcast 4.0.3, yet keeping compatibility with
Hazelcast 3.x.

Closes gh-20856
Closes gh-23475
This commit is contained in:
Stephane Nicoll
2020-09-09 17:48:49 +02:00
parent 7b183ef99d
commit 4009acf025
32 changed files with 418 additions and 79 deletions

View File

@@ -3,12 +3,12 @@ plugins {
id "org.springframework.boot.conventions"
}
description = "Spring Boot Hazelcast 4 smoke test"
description = "Spring Boot Hazelcast 3 smoke test"
configurations.all {
resolutionStrategy {
force "com.hazelcast:hazelcast:4.0.1"
force "com.hazelcast:hazelcast-spring:4.0.1"
force "com.hazelcast:hazelcast:3.12.8"
force "com.hazelcast:hazelcast-spring:3.12.8"
}
}

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package smoketest.hazelcast4;
package smoketest.hazelcast3;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package smoketest.hazelcast4;
package smoketest.hazelcast3;
import com.hazelcast.spring.cache.HazelcastCacheManager;
@@ -27,10 +27,10 @@ import org.springframework.context.annotation.Bean;
@SpringBootApplication
@EnableCaching
public class SampleHazelcast4Application {
public class SampleHazelcast3Application {
public static void main(String[] args) {
SpringApplication.run(SampleHazelcast4Application.class, args);
SpringApplication.run(SampleHazelcast3Application.class, args);
}
@Bean

View File

@@ -1,7 +1,7 @@
<hazelcast xmlns="http://www.hazelcast.com/schema/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.hazelcast.com/schema/config
http://www.hazelcast.com/schema/config/hazelcast-config-4.0.xsd">
http://www.hazelcast.com/schema/config/hazelcast-config-3.12.xsd">
<map name="countries">
<time-to-live-seconds>600</time-to-live-seconds>
</map>

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package smoketest.hazelcast4;
package smoketest.hazelcast3;
import com.hazelcast.spring.cache.HazelcastCacheManager;
import org.junit.jupiter.api.Test;

View File

@@ -1,4 +1,4 @@
<hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-3.12.xsd"
<hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-4.0.xsd"
xmlns="http://www.hazelcast.com/schema/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">