Fix the mainClassName property definition in build.gradle.

Exclude org.springframework.boot:spring-boot-starter-logging to avoid conflicts with Apache Geode Log4J logging.
This commit is contained in:
John Blum
2017-11-28 22:43:51 -08:00
parent 5c647b8683
commit 649307d4d2
2 changed files with 31 additions and 15 deletions

View File

@@ -10,14 +10,20 @@ repositories {
dependencies {
compile project(':spring-session-data-geode')
compile "org.springframework.boot:spring-boot-starter-thymeleaf"
compile "org.springframework.boot:spring-boot-starter-web"
compile("org.springframework.boot:spring-boot-starter-thymeleaf") {
exclude group: "org.springframework.boot", module: "spring-boot-starter-logging"
}
compile("org.springframework.boot:spring-boot-starter-web") {
exclude group: "org.springframework.boot", module: "spring-boot-starter-logging"
}
compile "org.webjars:bootstrap"
compile "org.webjars:webjars-locator"
runtime "org.springframework.shell:spring-shell"
testCompile "org.springframework.boot:spring-boot-starter-test"
testCompile("org.springframework.boot:spring-boot-starter-test") {
exclude group: "org.springframework.boot", module: "spring-boot-starter-logging"
}
testCompile seleniumDependencies
// integrationTestCompile seleniumDependencies
@@ -26,16 +32,18 @@ dependencies {
}
mainClassName = 'sample.client.Application'
bootJar {
mainClassName = 'sample.client.Application'
}
run {
doFirst {
mainClassName = 'sample.server.GemFireServer'
}
}
bootJar {
mainClassName = 'sample.client.Application'
}
task runGemFireServer() {
doLast {
ext.port = reservePort()

View File

@@ -10,14 +10,20 @@ repositories {
dependencies {
compile project(':spring-session-data-geode')
compile "org.springframework.boot:spring-boot-starter-thymeleaf"
compile "org.springframework.boot:spring-boot-starter-web"
compile("org.springframework.boot:spring-boot-starter-thymeleaf") {
exclude group: "org.springframework.boot", module: "spring-boot-starter-logging"
}
compile("org.springframework.boot:spring-boot-starter-web") {
exclude group: "org.springframework.boot", module: "spring-boot-starter-logging"
}
compile "org.webjars:bootstrap"
compile "org.webjars:webjars-locator"
runtime "org.springframework.shell:spring-shell"
testCompile "org.springframework.boot:spring-boot-starter-test"
testCompile("org.springframework.boot:spring-boot-starter-test") {
exclude group: "org.springframework.boot", module: "spring-boot-starter-logging"
}
testCompile seleniumDependencies
integrationTestCompile seleniumDependencies
@@ -26,16 +32,18 @@ dependencies {
}
mainClassName = 'sample.client.Application'
bootJar {
mainClassName = 'sample.client.Application'
}
run {
doFirst {
mainClassName = 'sample.server.GemFireServer'
}
}
bootJar {
mainClassName = 'sample.client.Application'
}
task runGemFireServer() {
doLast {
ext.port = reservePort()
@@ -45,7 +53,7 @@ task runGemFireServer() {
def out = new StringBuilder()
def err = new StringBuilder()
String classpath = sourceSets.main.runtimeClasspath.collect { it }.join(File.pathSeparator)
String classpath = project.sourceSets.main.runtimeClasspath.collect { it }.join(File.pathSeparator)
String[] commandLine = [
'java', '-server', '-ea', '-classpath', classpath,