ai.digital.integration.server.common.util.ServerUtil.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.util
import ai.digital.integration.server.common.constant.ProductName
import ai.digital.integration.server.common.domain.Server
import ai.digital.integration.server.deploy.internals.DeployServerUtil
import ai.digital.integration.server.release.util.ReleaseServerUtil
import org.gradle.api.Project
class ServerUtil(
val project: Project,
val productName: ProductName
) {
fun getServer(): Server {
return when (productName) {
ProductName.DEPLOY -> DeployServerUtil.getServer(project)
ProductName.RELEASE -> ReleaseServerUtil.getServer(project)
}
}
}