This is the code that I have: ``` if (project.hasP...
# gradle
j
This is the code that I have:
Copy code
if (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