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

Modernize publishing Gradle config #69

Merged
merged 1 commit into from
Sep 16, 2024
Merged

Conversation

louwers
Copy link
Collaborator

@louwers louwers commented Sep 16, 2024

We had some issues with publication.

> Task :ktx-mapbox-maps:generateMetadataFileForReleasePublication FAILED
FAILURE: Build failed with an exception.
* What went wrong: A problem was found with the configuration of task ':ktx-mapbox-maps:generateMetadataFileForReleasePublication'  (type 'GenerateModuleMetadata' ) .    - Gradle detected a problem with the following location: '/Users/bart/src/maplibre- plugins- android/ ktx- mapbox- maps/ build/ libs/ ktx- mapbox- maps- 3. 0. 1- pre0- sources. jar' . 
    Reason: Task ':ktx-mapbox-maps:generateMetadataFileForReleasePublication'  uses this output of task ':ktx-mapbox-maps:androidSourcesJar'  without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
    Possible solutions:       1. Declare task ':ktx-mapbox-maps:androidSourcesJar'  as an input of ':ktx-mapbox-maps:generateMetadataFileForReleasePublication' .        2. Declare an explicit dependency on ':ktx-mapbox-maps:androidSourcesJar'  from ':ktx-mapbox-maps:generateMetadataFileForReleasePublication'  using Task#dependsOn.       3. Declare an explicit dependency on ':ktx-mapbox-maps:androidSourcesJar'  from ':ktx-mapbox-maps:generateMetadataFileForReleasePublication'  using Task#mustRunAfter.
    For more information, please refer to https://docs.gradle. org/ 8. 7/ userguide/ validation_ problems. html# implicit_ dependency in the Gradle documentation.

This seems to fix it.

@louwers louwers merged commit 8f2efaf into maplibre:main Sep 16, 2024
1 check passed
@louwers louwers deleted the publish branch September 16, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants