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:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package smoketest.hazelcast4;
|
||||
package smoketest.hazelcast3;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -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;
|
||||
@@ -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
|
||||
@@ -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>
|
||||
@@ -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;
|
||||
@@ -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">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user