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:
16
spring-geode-samples/spring-geode-samples.gradle
Normal file
16
spring-geode-samples/spring-geode-samples.gradle
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user