aepfli / gradle-gitlab-repositories

Handling Maven GitLab dependencies made easy. Define multiple tokens and selectively apply them to repositories, remove the need for repeating Credential handling blocks for different environments.
Eclipse Public License 2.0
13 stars 1 forks source link

allow content filterting #3

Open aepfli opened 3 years ago

aepfli commented 3 years ago

https://docs.gradle.org/current/userguide/declaring_repositories.html#sec:repository-content-filtering

Currently we do not support contentfiltering, add functionality to support this

kohenkatz commented 3 years ago

Here is my workaround for anyone who is looking for this feature:

    maven {
        gitLab.project("ID_NUMBER").execute(this)
        content {
            includeGroup("com.example")
        }
    }

Basically, instead of passing the Action created by this plugin into the maven function directly, a new Action is created and the action returned by this plugin modifies it.