Add Gradle build infrastructure code to generate Maven POMs for Samples.

This includes a parent Maven POM template and an example Maven POM template for the Getting Started Sample.

Resolves gh-75.
This commit is contained in:
John Blum
2020-03-18 13:27:51 -07:00
parent 0e5c799f37
commit 9331d4913b
3 changed files with 177 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
apply plugin: 'java'
task generateSamplesPoms(type: Copy) {
from('src/main/templates')
into rootProject.projectDir.path + '/spring-geode-samples'
include '**/*.tmpl'
rename { fileName -> "${(fileName - '.tmpl')}" }
expand([
version: "${version}",
springBootVersion: "${springBootVersion}"
])
}
processResources {
dependsOn generateSamplesPoms
}