[FR]: Gradle Repository Potential Security and Reproducibility Risk

Open
#1,558 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
kotlin

Research direction

Start in the root settings.gradle.kts and read Gradle's repository content-filtering documentation linked in the issue. Define repository scopes that avoid unintended artifact resolution, then verify that the project still resolves its dependencies and builds reproducibly.

Written by the indexing model from the issue text.

Description

enhancement
Is there an existing issue for this?
  • I have searched the existing issues
Describe the problem

The current root settings.gradle.kts setup poses a potential security and reproducibility risk due to the unrestricted access to repositories. The order of repository declarations matters as Gradle resolves dependencies in the order listed, leading to unintended artifacts being included if not properly managed.

Example Case:
The com.jraska.module.graph.assertion artifact is found in gradlePluginPortal() but not in mavenCentral(). Without proper filtering, new artifacts in mavenCentral() could unintentionally break or alter the build.

Current Configuration:

pluginManagement {
    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
    }
}
Describe the solution

implement content filtering to restrict the scope of artifacts from each repository.

Additional context

No response

Code of Conduct
  • I agree to follow this project's Code of Conduct
Dominant language
Kotlin
Stars
22.1k
Forks
4.7k
PR merge metrics
No merged PRs in 30d

Getting set up

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.

More from android/nowinandroid

All issues in android/nowinandroid

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.