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

name.remal.gradle_plugins.toolkit.JacocoPluginExtensionUtilsMethodsDefault Maven / Gradle / Ivy

There is a newer version: 0.68.0
Show newest version
package name.remal.gradle_plugins.toolkit;

import com.google.auto.service.AutoService;
import java.io.File;
import org.gradle.api.provider.Provider;
import org.gradle.testing.jacoco.plugins.JacocoPluginExtension;

@AutoService(JacocoPluginExtensionUtilsMethods.class)
final class JacocoPluginExtensionUtilsMethodsDefault implements JacocoPluginExtensionUtilsMethods {

    @Override
    public File getReportsDir(JacocoPluginExtension extension) {
        return extension.getReportsDirectory().get().getAsFile();
    }

    @Override
    public void setReportsDir(JacocoPluginExtension extension, Provider reportsDirProvider) {
        extension.getReportsDirectory().fileProvider(reportsDirProvider);
    }

    @Override
    public void setReportsDir(JacocoPluginExtension extension, File reportsDir) {
        extension.getReportsDirectory().set(reportsDir);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy