Skip to content

Investigate Maven content filtering issue in SpineBasedProject #82

@alexander-yevsyukov

Description

@alexander-yevsyukov

When adding Maven repositories specific to Spine, we used to have the following method of the SpineBasedProject class :

    private void addSpineRepository(Url repositoryUrl,
                                    Consumer<MavenRepositoryContentDescriptor> contentConfig) {
        project.getRepositories().maven(repo -> {
            repo.setUrl(repositoryUrl.getSpec());
            repo.mavenContent(contentConfig::accept);
            repo.content(descriptor -> descriptor.includeGroupByRegex(SPINE_GROUP_PATTERN));
        });
    }

After recent migration to Gradle 7 and new repositories the content filtering causes artifact lookup to fail. The filtering is configured by this code line:

repo.mavenContent(contentConfig::accept);

This line was recently commented out. It needs to be investigated why the artifact lookup fails if we do apply the Maven content filtering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions