
ai.digital.integration.server.tasks.DownloadAndExtractDbUnitDataDistTask.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of integratoin-server-gradle-plugin Show documentation
Show all versions of integratoin-server-gradle-plugin Show documentation
The easy way to get custom setup for Deploy up and running
The newest version!
package ai.digital.integration.server.tasks
import ai.digital.integration.server.util.ExtensionUtil
import org.gradle.api.tasks.Copy
import static ai.digital.integration.server.util.ConfigurationsUtil.SERVER_DATA_DIST
import static ai.digital.integration.server.constant.PluginConstant.DIST_DESTINATION_NAME
import static ai.digital.integration.server.constant.PluginConstant.PLUGIN_GROUP
class DownloadAndExtractDbUnitDataDistTask extends Copy {
static NAME = "downloadAndExtractDbUnitData"
DownloadAndExtractDbUnitDataDistTask() {
this.configure {
group = PLUGIN_GROUP
def version = ExtensionUtil.getExtension(project).xldIsDataVersion
project.buildscript.dependencies.add(
SERVER_DATA_DIST,
"com.xebialabs.deployit.plugins:xld-is-data:${version}:repository@zip"
)
from { project.zipTree(project.buildscript.configurations.getByName(SERVER_DATA_DIST).singleFile) }
into { project.buildDir.toPath().resolve(DIST_DESTINATION_NAME).toAbsolutePath().toString() }
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy