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

main.name.remal.gradle_plugins.plugins.fatjar.FatJarSettingsExtension.kt Maven / Gradle / Ivy

There is a newer version: 1.9.2
Show newest version
package name.remal.gradle_plugins.plugins.fatjar

import name.remal.gradle_plugins.dsl.Extension
import org.gradle.api.file.FileTreeElement
import org.gradle.api.specs.Spec

@Extension
class FatJarSettingsExtension {

    val excludePatterns: MutableSet = sortedSetOf()

    fun exclude(vararg excludes: String) {
        excludePatterns.addAll(excludes)
    }

    fun exclude(excludes: Iterable) {
        excludePatterns.addAll(excludes)
    }


    val excludeSpecs = mutableListOf>()

    fun exclude(excludeSpec: Spec) {
        excludeSpecs.add(excludeSpec)
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy