jlleitschuh
03/21/2017, 4:15 PMif (project.hasProperty(DbProps.REFERENCE_VERSION_PROP)) {
// Create a configuration specifically for our liquibase war
val liquibaseWarConfig = configurations.create("liquibaseWar")
val plexxiCoreWar =
dependencies.create(
group = "com.plexxi",
name = "PlexxiCore",
version = "${project.property(DbProps.REFERENCE_VERSION_PROP)}",
ext = "war")
dependencies.add(liquibaseWarConfig.name, plexxiCoreWar)
val warFileName = "PlexxiCore-${project.property(DbProps.REFERENCE_VERSION_PROP)}.war"
val copyOldWarTask = task<Copy>("copyOldWar") {
from(liquibaseWarConfig.map { it })
into("$buildDir/schema")
rename {
warFileName
}
}
}
This code exists within a project called PlexxiCore