diff --git a/persistence-modules/spring-data-gemfire/pom.xml b/persistence-modules/spring-data-gemfire/pom.xml index 9b8ee89810..53ce67fb6d 100644 --- a/persistence-modules/spring-data-gemfire/pom.xml +++ b/persistence-modules/spring-data-gemfire/pom.xml @@ -15,9 +15,14 @@ - org.springframework.geode - spring-geode-starter - ${spring-geode.version} + org.springframework.data + spring-data-gemfire + ${spring-data-gemfire-version} + + + com.gemstone.gemfire + gemfire + ${gemfire-version} @@ -25,6 +30,17 @@ google-collections ${google-collections-version} + + org.springframework + spring-context + ${spring-context-version} + + + commons-logging + commons-logging + + + org.springframework spring-test @@ -33,10 +49,19 @@ + + + gemstone + http://dist.gemstone.com.s3.amazonaws.com/maven/release/ + + + - 1.7.4 + 1.7.4.RELEASE + 7.0.1 1.0 - 5.3.23 + 4.3.0.RELEASE + 4.3.0.RELEASE \ No newline at end of file diff --git a/persistence-modules/spring-data-gemfire/src/main/java/com/baeldung/spring/data/gemfire/function/GemfireConfiguration.java b/persistence-modules/spring-data-gemfire/src/main/java/com/baeldung/spring/data/gemfire/function/GemfireConfiguration.java index 296516aec5..0049f82ddc 100644 --- a/persistence-modules/spring-data-gemfire/src/main/java/com/baeldung/spring/data/gemfire/function/GemfireConfiguration.java +++ b/persistence-modules/spring-data-gemfire/src/main/java/com/baeldung/spring/data/gemfire/function/GemfireConfiguration.java @@ -2,8 +2,8 @@ package com.baeldung.spring.data.gemfire.function; import com.baeldung.spring.data.gemfire.model.Employee; import com.baeldung.spring.data.gemfire.repository.EmployeeRepository; -import org.apache.geode.cache.DataPolicy; -import org.apache.geode.cache.GemFireCache; +import com.gemstone.gemfire.cache.DataPolicy; +import com.gemstone.gemfire.cache.GemFireCache; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; @@ -39,6 +39,7 @@ public class GemfireConfiguration { } @Bean + @Autowired CacheFactoryBean gemfireCache() { CacheFactoryBean gemfireCache = new CacheFactoryBean(); gemfireCache.setClose(true); @@ -48,6 +49,7 @@ public class GemfireConfiguration { @Bean(name="employee") + @Autowired LocalRegionFactoryBean getEmployee(final GemFireCache cache) { LocalRegionFactoryBean employeeRegion = new LocalRegionFactoryBean(); employeeRegion.setCache(cache);