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

com.javiersc.gradle.plugins.all.projects.install.InstallOptions.kt Maven / Gradle / Ivy

There is a newer version: 0.1.0-rc.45
Show newest version
package com.javiersc.gradle.plugins.all.projects.install

import com.javiersc.gradle.plugins.all.projects.install.pre.commit.PreCommitOptions
import javax.inject.Inject
import org.gradle.api.Action
import org.gradle.api.model.ObjectFactory
import org.gradle.api.provider.Property
import org.gradle.kotlin.dsl.property

open class InstallOptions @Inject constructor(objects: ObjectFactory) {
    fun preCommit(action: Action) = action.execute(preCommit.get())

    val preCommit: Property =
        objects
            .property()
            .value(objects.newInstance(PreCommitOptions::class.java))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy