All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.toasttab.expediter.gradle.config.ExpediterCheckSpec.kt Maven / Gradle / Ivy

The newest version!
package com.toasttab.expediter.gradle.config

import org.gradle.api.Action
import org.gradle.api.model.ObjectFactory
import org.gradle.kotlin.dsl.newInstance
import javax.inject.Inject

open class ExpediterCheckSpec @Inject constructor(
    objectFactory: ObjectFactory
) {
    val application: ApplicationSpec = objectFactory.newInstance()
    val platform: PlatformSpec = objectFactory.newInstance()
    val ignoreSpec: IgnoreSpec = objectFactory.newInstance()

    var failOnIssues: Boolean = false

    fun application(configure: Action) {
        configure.execute(application)
    }

    fun platform(configure: Action) {
        configure.execute(platform)
    }

    fun ignore(configure: Action) {
        configure.execute(ignoreSpec)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy