Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unpublished Gradle metadata is breaking builds #512

Open
dreis2211 opened this issue Nov 12, 2020 · 2 comments
Open

Unpublished Gradle metadata is breaking builds #512

dreis2211 opened this issue Nov 12, 2020 · 2 comments
Assignees

Comments

@dreis2211
Copy link

dreis2211 commented Nov 12, 2020

Hi,

our builds don't really work at the moment because the Gradle metadata file is not published, although the pom.xml marker suggests it.

https://repo1.maven.org/maven2/p6spy/p6spy/3.9.1/p6spy-3.9.1.pom

<!--  This module was also published with a richer model, Gradle metadata,   -->
<!--  which should be used instead. Do not delete the following line which   -->
<!--  is to indicate to Gradle or any Gradle module metadata file consumer   -->
<!--  that they should prefer consuming it instead.  -->
<!--  do_not_remove: published-with-gradle-metadata  -->

This currently breaks when doing ./gradlew build --refresh-dependencies and is a show-stopper for us at the moment because Artifactory is returning 403 on virtual repos when it doesn't find artifacts (https://www.jfrog.com/jira/browse/RTFACT-8765)

A quick fix would be to disable metadata generation

    tasks.withType(GenerateModuleMetadata) {
        enabled = false
    }

Or by including the respective .module file in the publication step.

Cheers,
Christoph

@dreis2211 dreis2211 changed the title Gradle metadata not published Unpublished Gradle metadata is breaking builds Nov 12, 2020
@typekpb typekpb self-assigned this Jan 23, 2021
@typekpb
Copy link
Member

typekpb commented Jan 23, 2021

@dreis2211 please have a look at the PR: #517 should be a fix for the reported issue

@typekpb
Copy link
Member

typekpb commented Jan 23, 2021

@dreis2211 I see your point, let's give it a try with the next release. would ask you for the feedback afterwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants