Fix Gradle deprecation warnings
This commit is contained in:
@@ -55,7 +55,8 @@ sonarqube {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task configDocsZip(dependsOn: [':docs:asciidoctor',':spring-session:javadoc']) << {
|
task configDocsZip(dependsOn: [':docs:asciidoctor',':spring-session:javadoc']) {
|
||||||
|
doLast {
|
||||||
project.tasks.docsZip.from(project(':docs').asciidoctor) {
|
project.tasks.docsZip.from(project(':docs').asciidoctor) {
|
||||||
into('reference')
|
into('reference')
|
||||||
}
|
}
|
||||||
@@ -63,6 +64,7 @@ task configDocsZip(dependsOn: [':docs:asciidoctor',':spring-session:javadoc']) <
|
|||||||
into('api')
|
into('api')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
task docsZip(type: Zip, dependsOn: 'configDocsZip') {
|
task docsZip(type: Zip, dependsOn: 'configDocsZip') {
|
||||||
|
|||||||
@@ -41,7 +41,8 @@ springBoot {
|
|||||||
mainClass = 'sample.client.Application'
|
mainClass = 'sample.client.Application'
|
||||||
}
|
}
|
||||||
|
|
||||||
task runGemFireServer() << {
|
task runGemFireServer() {
|
||||||
|
doLast {
|
||||||
println 'STARTING GEMFIRE SERVER...'
|
println 'STARTING GEMFIRE SERVER...'
|
||||||
|
|
||||||
ext.port = reservePort()
|
ext.port = reservePort()
|
||||||
@@ -61,6 +62,7 @@ task runGemFireServer() << {
|
|||||||
process.out.close()
|
process.out.close()
|
||||||
process.err.close()
|
process.err.close()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
integrationTest {
|
integrationTest {
|
||||||
|
|||||||
@@ -27,13 +27,16 @@ mainClassName = 'sample.Application'
|
|||||||
def port
|
def port
|
||||||
def process
|
def process
|
||||||
|
|
||||||
task availablePort() << {
|
task availablePort() {
|
||||||
|
doLast {
|
||||||
def serverSocket = new ServerSocket(0)
|
def serverSocket = new ServerSocket(0)
|
||||||
port = serverSocket.localPort
|
port = serverSocket.localPort
|
||||||
serverSocket.close()
|
serverSocket.close()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
task runGemFireServer(dependsOn: availablePort) << {
|
task runGemFireServer(dependsOn: availablePort) {
|
||||||
|
doLast {
|
||||||
println 'STARTING GEMFIRE SERVER...'
|
println 'STARTING GEMFIRE SERVER...'
|
||||||
|
|
||||||
String classpath = sourceSets.main.runtimeClasspath.collect { it }.join(File.pathSeparator)
|
String classpath = sourceSets.main.runtimeClasspath.collect { it }.join(File.pathSeparator)
|
||||||
@@ -51,6 +54,7 @@ task runGemFireServer(dependsOn: availablePort) << {
|
|||||||
process.out.close()
|
process.out.close()
|
||||||
process.err.close()
|
process.err.close()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
integrationTest.doLast {
|
integrationTest.doLast {
|
||||||
println 'STOPPING GEMFIRE SERVER...'
|
println 'STOPPING GEMFIRE SERVER...'
|
||||||
|
|||||||
@@ -28,13 +28,16 @@ def process
|
|||||||
|
|
||||||
mainClassName = "sample.ServerConfig"
|
mainClassName = "sample.ServerConfig"
|
||||||
|
|
||||||
task availablePort() << {
|
task availablePort() {
|
||||||
|
doLast {
|
||||||
def serverSocket = new ServerSocket(0)
|
def serverSocket = new ServerSocket(0)
|
||||||
port = serverSocket.localPort
|
port = serverSocket.localPort
|
||||||
serverSocket.close()
|
serverSocket.close()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
task runGemFireServer(dependsOn: availablePort) << {
|
task runGemFireServer(dependsOn: availablePort) {
|
||||||
|
doLast {
|
||||||
println 'STARTING GEMFIRE SERVER...'
|
println 'STARTING GEMFIRE SERVER...'
|
||||||
|
|
||||||
String classpath = sourceSets.main.runtimeClasspath.collect { it }.join(File.pathSeparator)
|
String classpath = sourceSets.main.runtimeClasspath.collect { it }.join(File.pathSeparator)
|
||||||
@@ -52,6 +55,7 @@ task runGemFireServer(dependsOn: availablePort) << {
|
|||||||
process.out.close()
|
process.out.close()
|
||||||
process.err.close()
|
process.err.close()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
integrationTest.doLast {
|
integrationTest.doLast {
|
||||||
println 'STOPPING GEMFIRE SERVER...'
|
println 'STOPPING GEMFIRE SERVER...'
|
||||||
|
|||||||
Reference in New Issue
Block a user