ai.digital.integration.server.common.domain.Server.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of integration-server-gradle-plugin Show documentation
Show all versions of integration-server-gradle-plugin Show documentation
The easy way to get custom setup for Deploy up and running
package ai.digital.integration.server.common.domain
import ai.digital.integration.server.common.constant.ServerConstants
import ai.digital.integration.server.common.domain.api.Container
import ai.digital.integration.server.common.util.HTTPUtil
import groovy.lang.Closure
import org.gradle.api.NamedDomainObjectContainer
import java.io.File
open class Server(name: String) : Container(name) {
var akkaSecured: Boolean = false
var contextRoot: String = "/"
var copyBuildArtifacts = mutableMapOf()
var copyFolders = mutableMapOf>()
var defaultOfficialPluginsToExclude: List = mutableListOf()
var devOpsAsCodes: NamedDomainObjectContainer? = null
var dockerImage: String? = null
var centralConfigDockerImage: String? = null
var httpPort: Int = HTTPUtil.findFreePort()
var generateDatasets: List = mutableListOf()
var pingRetrySleepTime: Int = ServerConstants.DEFAULT_PING_RETRY_SLEEP_TIME
var pingTotalTries: Int = ServerConstants.DEFAULT_PING_TOTAL_TRIES
var previousInstallation: Boolean = false
var tls: Boolean = false
var yamlPatches: Map> = mutableMapOf()
fun devOpsAsCodes(closure: Closure>) {
devOpsAsCodes?.configure(closure)
}
}