licensee icon indicating copy to clipboard operation
licensee copied to clipboard

Add ignoreDependenciesByRegex

Open consp1racy opened this issue 2 years ago • 2 comments

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

What's done

  • Implement the thing.
  • Fix running tests on Windows by checking golden text files with LF line endings. violationsIgnored[...] and violationsLogged[...] remain unfixed.
  • installArchives publishes files under ${projectDir}/build where tests expect them, instead of buildDir which, in my case, resides decoupled on a RAM disk.

consp1racy avatar May 31 '22 14:05 consp1racy

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

consp1racy avatar May 31 '22 15:05 consp1racy

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

JakeWharton avatar Jun 03 '22 12:06 JakeWharton

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

ybentlili avatar Nov 16 '22 08:11 ybentlili

Any update on this feature?

SmialyKot avatar May 16 '23 07:05 SmialyKot

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

consp1racy avatar May 16 '23 16:05 consp1racy

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.

consp1racy avatar May 24 '23 11:05 consp1racy