mapbox / mapbox/android-sdk-versions-plugin

🐞 Plugin breaks execution optimizations.

Open
#42 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Groovy
Stars
1
Forks
5
PR merge metrics
No merged PRs in 30d

Description

❯ ./gradlew build
Starting a Gradle Daemon (subsequent builds will be faster)

> Task :buildSrc:jar
:jar: No valid plugin descriptors were found in META-INF/gradle-plugins

> Task :common:packageDebugAssets
Execution optimizations have been disabled for task ':common:packageDebugAssets' to ensure correctness due to the following reasons:
- Gradle detected a problem with the following location: '/home/tarigo/work/mapbox-sdk-common/platform/android/common/src/main/assets'. Reason: Task ':common:packageDebugAssets' uses this output of task ':common:saveSDKVersion' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.0.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the Gradle configuration for :common:packageDebugAssets and :common:saveSDKVersion, using the reported assets location as a guide. Run ./gradlew build to reproduce the validation warning. Done means the task relationship is explicit and Gradle no longer disables execution optimizations for this reason.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.