ai.digital.integration.server.common.util.InfrastructureUtil.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.domain.Infrastructure
import ai.digital.integration.server.deploy.internals.DeployExtensionUtil
import org.gradle.api.Project
class InfrastructureUtil {
companion object {
fun getInfrastructures(project: Project): List {
return DeployExtensionUtil.getExtension(project).infrastructures.toList()
}
fun hasInfrastructures(project: Project): Boolean {
return getInfrastructures(project).isNotEmpty()
}
}
}