Modern Apps git

← Modern-Apps.git

build: ktlint plugin resolves from the Plugin Portal, fixing CI

Commit
bebefb43384bf3ee4c8fe50d0328f829812ddd33
Author
Vayun Mathur <[email protected]>
When
2026-12-01 03:02 UTC (5 days ago)
Parents
773768a
CI failed evaluating ':build-logic:generateExternalPluginSpecBuilders':
org.jlleitschuh.gradle:ktlint-gradle:14.2.0 could not be found
in google() or mavenCentral(). Correct: unlike detekt (the
pattern the wiring copied), the ktlint plugin publishes its
implementation jar only to the Gradle Plugin Portal — the
artifact 404s on Maven Central — while a developer machine
with a warm cache never notices. build-logic's
dependencyResolutionManagement declared only google() and
mavenCentral().

The portal is now declared there too, content-filtered to
includeGroup("org.jlleitschuh.gradle") so nothing else can
resolve through it (mirroring the existing org.signal-scoped
repository in the root settings). FAIL_ON_PROJECT_REPOS is
untouched: these are settings-level repositories. Verified by
evicting the cached plugin and re-running ktlint tasks on
games/pipes (green) and games/unblockjam (executes; fails only
on its known formatting backlog).

Diff

build-logic/settings.gradle.kts
diff --git a/build-logic/settings.gradle.kts b/build-logic/settings.gradle.ktsindex 97b4980846..6599bdab4b 100644--- a/build-logic/settings.gradle.kts+++ b/build-logic/settings.gradle.kts@@ -16,5 +16,11 @@ dependencyResolutionManagement {     repositories {         google()         mavenCentral()+        // The ktlint Gradle plugin publishes its implementation jar only to the+        // Plugin Portal (org.jlleitschuh.gradle is 404 on Maven Central), unlike+        // detekt. Scoped to that one group so nothing else resolves through it.+        gradlePluginPortal {+            content { includeGroup("org.jlleitschuh.gradle") }+        }     } }\ No newline at end of file