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

name.remal.gradle_plugins.dsl.extensions.org.gradle.api.invocation.Gradle.kt Maven / Gradle / Ivy

package name.remal.gradle_plugins.dsl.extensions

import name.remal.error
import org.gradle.api.invocation.Gradle
import org.slf4j.LoggerFactory.getLogger

fun Gradle.registerCloseable(closeable: AutoCloseable) {
    buildFinished {
        try {
            closeable.close()

        } catch (e: Exception) {
            getLogger(closeable.javaClass).error(e)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy