Repository navigation
build: depend on the Kotlin and detekt Gradle plugin artifacts instead of their markers - #305
Open
sergej-koscejev wants to merge 1 commit into
Open
sergej-koscejev wants to merge 1 commit into
sergej-koscejev wants to merge 1 commit into
Conversation
…d of their markers
sergej-koscejev
marked this pull request as ready for review
November 20, 2026 07:04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
build-logicdepended on the plugin marker modules of the Kotlin and detekt Gradle plugins. A marker haspompackaging, so Gradle also asks for an optional.jar, which does not exist. Gradle caches the 404 for only 24 hours, so every CI job that restores an older Gradle user home asks Maven Central again. When Maven Central answers 429 or 403 instead of 404, configuring:daemonfails (runs 44124256664, 44134812584, 44608914710).build-logicnow depends on the plugin artifacts themselves, at the same versions:kotlin-gradle-plugin-marker→kotlin-gradle-pluginorg.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin→org.jetbrains.kotlin:kotlin-gradle-plugindetekt-gradle-plugin-marker→detekt-gradle-plugindev.detekt:dev.detekt.gradle.plugin→dev.detekt:detekt-gradle-pluginNothing else used the marker aliases. Both entries keep
version.ref = "kotlin"andversion.ref = "detekt", so Renovate updates them together with the plugins and.github/renovate.json5needs no change.Evidence
./gradlew --refresh-dependencies --debug help, requests that Gradle logged asResource missing:Before (
origin/main): 14 misses. Two are marker jars on Maven Central, the URLs from the failed runs:After: 11 misses, none of them a
*.gradle.plugin-*.jaron Maven Central. The detekt marker jar request to the Gradle Plugin Portal (frombuild-logic:compileClasspath) is gone as well../gradlew assemble compileTestKotlin detektMain :architecture-tests:testpasses.The root
plugins { alias(libs.plugins.kotlin.jvm) apply false }also asks for a marker jar, but from the Gradle Plugin Portal, not from Maven Central. Gradle does this for every plugin that aplugins {}block resolves by ID and version, 7 requests in all, unchanged by this PR. Avoiding them would mean putting those plugins on thebuild-logicclasspath instead, which is a larger change. No CI failure has come from the portal.Merge Danger
Blast Radius: Build
Only the build classpath of
build-logicchanges. The plugins and their versions are the same.Where to look
gradle/libs.versions.toml: the new alias nameskotlin-gradle-pluginanddetekt-gradle-plugin.Left for later
:daemonbuildscript asks Maven Central for the mps-platform-cache and jbr-toolchain modules first, which get the same 24-hour "missing" cache.