cashapp / licensee

Gradle plugin which validates the licenses of your dependency graph match what you expect
https://cashapp.github.io/licensee/docs/1.x/
Apache License 2.0
626 stars 29 forks source link

Add ignoreDependenciesByRegex #94

Closed consp1racy closed 1 year ago

consp1racy commented 2 years ago

Fixes https://github.com/cashapp/licensee/issues/49.

What's done

consp1racy commented 2 years ago

Any idea how to prevent jitpack from trying to include test maven repos?

https://jitpack.io/com/github/consp1racy/licensee/ep~regex-ignore-1.4.0-gd38f8aa-5/build.log

JakeWharton commented 2 years ago

Thanks for the PR. I'll review it next week.

ybentlili commented 1 year ago

Hello @JakeWharton any update about this PR ? As I see, it is not yet merged ..

SmialyKot commented 1 year ago

Any update on this feature?

consp1racy commented 1 year ago

I'll have to split it into three separate PRs as outlined above. Then I'll have to resolve the conflicts

consp1racy commented 1 year ago

Gradle 8.1 has this for repository content descriptors, which would fit my needs.

/**
     * Declares that an entire group and its subgroups should be searched for in this repository.
     *
     * <p>
     * A subgroup is a group that starts with the given prefix and has a dot immediately after the prefix.
     * For example, if the prefix is {@code org.gradle}, then {@code org.gradle} is matched as a group,
     * and {@code org.gradle.foo} and {@code org.gradle.foo.bar} are matched as subgroups. {@code org.gradlefoo}
     * is not matched as a subgroup.
     * </p>
     *
     * @param groupPrefix the group prefix to include
     * @since 8.1
     */
    @Incubating
    void includeGroupAndSubgroups(String groupPrefix);

This would be easier than regex.