
ai.digital.integration.server.tasks.mq.ShutdownMqTask.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.mq
import ai.digital.integration.server.util.MqUtil
import ai.digital.integration.server.constant.PluginConstant
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.InputFiles
import org.gradle.api.tasks.TaskAction
class ShutdownMqTask extends DefaultTask {
static NAME = "shutdownMq"
ShutdownMqTask() {
this.group = PluginConstant.PLUGIN_GROUP
}
@InputFiles
File getDockerComposeFile() {
MqUtil.getResolvedDockerFile(project).toFile()
}
@TaskAction
void stop() {
project.logger.lifecycle("Shutting down ${MqUtil.mqName(project)} MQ.")
project.exec {
it.executable 'docker-compose'
it.args '-f', getDockerComposeFile(), '--project-directory', MqUtil.getMqDirectory(project), 'down'
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy