CI: CodeQL java-kotlin intermittently fails to resolve Gradle plugins (no dependency cache)

Open Beginner friendly
#103 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
Half a day
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
github-actions, kotlin
Domain
ci-cd

Research direction

Start with codeql.yml and the Android job in ci.yml, then compare their Gradle setup with settings.gradle.kts. Enable Gradle dependency caching for the pinned actions/setup-java step and verify why plugin resolution lists only Google and MavenRepo rather than gradlePluginPortal(). Done means the required CodeQL job reliably resolves the Kotlin plugin without rerunning while remaining enabled.

Written by the indexing model from the issue text.

Description

ci

Analyze (java-kotlin) (CodeQL, a required check) fails intermittently while resolving Gradle plugins, before any analysis:

Plugin [id: 'org.jetbrains.kotlin.jvm', version: '2.3.10', apply: false] was not found in any of the following sources:
  ... Searched in the following repositories: Google, MavenRepo

Seen on #89, #99 and #101 (3 times in 2 days). A rerun passes, so this is a download problem, not the code.

Neither codeql.yml nor the Android job in ci.yml caches Gradle dependencies, so every run downloads everything from Maven Central.

Proposed fix (needs review, CI change):

  • Enable Gradle dependency caching for the CodeQL java-kotlin job, e.g. cache: gradle on the existing pinned actions/setup-java.
  • Check why the error lists only Google and MavenRepo although settings.gradle.kts also declares gradlePluginPortal().

The check stays required and is not skipped.

Dominant language
Kotlin
Stars
0
Forks
0
Avg merge
17h 56m
Merged PRs (30d)
10

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 ft-dev-org/cloudbridge-oss

All issues in ft-dev-org/cloudbridge-oss

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.