com.toasttab.expediter.gradle.config.ExpediterCheckSpec.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plugin Show documentation
Show all versions of plugin Show documentation
Check ABI compatibility at build time
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)
}
}