Add Apache Geode support (#366)

Closes gh-365, gh-366
This commit is contained in:
John Blum
2016-08-15 12:53:12 -07:00
committed by Rob Winch
parent bbb94361f8
commit 1256a94d7e
9 changed files with 66 additions and 11 deletions

View File

@@ -16,10 +16,6 @@ liveReload {
docRoot asciidoctor.sourceDir.canonicalPath
}
repositories {
maven { url 'http://dist.gemstone.com/maven/release' }
}
asciidoctorj {
}
@@ -31,7 +27,6 @@ dependencies {
project(':spring-session-data-mongo'),
"org.springframework.data:spring-data-gemfire:$springDataGemFireVersion",
"org.springframework.data:spring-data-redis:$springDataRedisVersion",
"org.springframework.data:spring-data-gemfire:$springDataGemFireVersion",
"org.springframework:spring-websocket:${springVersion}",
"org.springframework:spring-messaging:${springVersion}",
"org.springframework:spring-jdbc:${springVersion}",

View File

@@ -21,6 +21,7 @@ h2Version=1.4.191
springDataMongoVersion=1.9.1.RELEASE
springShellVersion=1.1.0.RELEASE
springDataGemFireVersion=1.8.1.RELEASE
springDataGeodeVersion=1.0.0.APACHE-GEODE-INCUBATING-M2
assertjVersion=2.3.0
spockVersion=1.0-groovy-2.4
jstlVersion=1.2.1

View File

@@ -13,7 +13,7 @@ configurations {
}
dependencies {
compile project(':spring-session-data-gemfire'),
compile project(':spring-session-data-geode'),
"org.springframework:spring-web:$springVersion",
"org.webjars:bootstrap:$bootstrapVersion",
"org.webjars:webjars-taglib:$webjarsTaglibVersion",

View File

@@ -20,15 +20,15 @@ dependencies {
integrationTestCompile gebDependencies
integrationTestRuntime "org.springframework.shell:spring-shell:1.0.0.RELEASE"
integrationTestRuntime "org.springframework.shell:spring-shell:1.0.0.RELEASE",
"xml-apis:xml-apis:1.4.01"
}
mainClassName = "sample.ServerConfig"
def port
def process
mainClassName = "sample.ServerConfig"
task availablePort() << {
def serverSocket = new ServerSocket(0)
port = serverSocket.localPort

View File

@@ -0,0 +1,38 @@
/*
* Copyright 2014-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package sample;
/**
* The ClassLocator class...
*
* @author John Blum
* @since 1.0.0
*/
public final class ClassLocator {
private ClassLocator() {
}
public static void main(final String[] args) throws ClassNotFoundException {
String className = "org.w3c.dom.ElementTraversal";
//String className = (args.length > 0 ? args[0] : "com.gemstone.gemfire.cache.Cache");
Class<?> type = Class.forName(className);
String resourceName = type.getName().replaceAll("\\.", "/").concat(".class");
System.out.printf("class [%1$s] with resource name [%2$s] is found in [%3$s]%n",
className, resourceName, type.getClassLoader().getResource(resourceName));
}
}

View File

@@ -7,7 +7,7 @@ configurations {
}
dependencies {
compile project(':spring-session-data-gemfire'),
compile project(':spring-session-data-geode'),
"org.springframework:spring-web:$springVersion",
"org.webjars:bootstrap:$bootstrapVersion",
"org.webjars:webjars-taglib:$webjarsTaglibVersion",

View File

@@ -26,6 +26,7 @@ include 'samples:grails3'
include 'spring-session'
include 'spring-session-data-gemfire'
include 'spring-session-data-geode'
include 'spring-session-data-redis'
include 'spring-session-jdbc'
include 'spring-session-data-mongo'

View File

@@ -0,0 +1,21 @@
apply from: JAVA_GRADLE
apply from: MAVEN_GRADLE
apply plugin: 'spring-io'
description = "Aggregator for Spring Session and Spring Data GemFire with Apache Geode support"
dependencies {
compile project(':spring-session')
compile("org.springframework.data:spring-data-geode:$springDataGeodeVersion") {
exclude group: "org.slf4j", module: 'slf4j-api'
exclude group: "org.slf4j", module: 'jcl-over-slf4j'
}
}
dependencyManagement {
springIoTestRuntime {
imports {
mavenBom "io.spring.platform:platform-bom:${springIoVersion}"
}
}
}

View File

@@ -42,7 +42,6 @@ dependencies {
"org.springframework.security:spring-security-core:$springSecurityVersion"
jacoco "org.jacoco:org.jacoco.agent:0.7.2.201409121644:runtime"
}
dependencyManagement {