Edwin Günthner
09/16/2026, 6:45 PM* What went wrong:
Plugin [id: 'org.gradle.kotlin.kotlin-dsl', version: '6.6.4'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Included Builds (No included builds contain this plugin)
- Plugin Repositories (could not resolve plugin artifact 'org.gradle.kotlin.kotlin-dsl:org.gradle.kotlin.kotlin-dsl.gradle.plugin:6.6.4')
Searched in the following repositories:
maven(<https://eu.artifactory.whatever.com/artifactory/foobarblub>)
Token invalid , download not possible, but a "not found error"
In order to make our tooling more user friendly, we added a "ping" check to our toplevel settings.gradle file.
Artifactory servers have a "ping" endpoint, so do a GET request ... and if that fails with a 401 or 403, the token is not valid, and we can print a nice error message.
But: this means that any single gradle invocation sends such a "ping" to the Artifactory servers.
And now we regularly see failures on our CI build servers with Artifactory complaining about "too many requests".
Before we had this "ping" solution, we tried to somehow "catch" the actual "not found error" that I showed above, but I couldn't get that to work reliably.
Any idea if/how we can reliably give "good" error messages when Artifactory downloads fail (because of that bad token), without hammering the servers with every gradle invocation?Philip W
09/16/2026, 6:51 PMEdwin Günthner
09/16/2026, 6:53 PMPhilip W
09/16/2026, 6:54 PMEdwin Günthner
09/16/2026, 6:57 PMPhilip W
09/16/2026, 6:58 PMVampire
09/17/2026, 6:33 AMVampire
09/17/2026, 7:05 AMhideUnauthorizedResources probably is the Artifactory setting you are afterLaura Kassovic
09/17/2026, 4:01 PMMultiCauseException to figure out which repo calls failed and ping only the failed ones.
Fix whatever the issue was (network, bad token....)
Re-run the build.Edwin Günthner
09/18/2026, 9:25 AMPhilip W
09/18/2026, 9:37 AMEdwin Günthner
09/18/2026, 11:17 AMLaura Kassovic
09/18/2026, 2:11 PMVampire
09/18/2026, 2:23 PMEdwin Günthner
09/21/2026, 6:55 AMEdwin Günthner
09/24/2026, 4:35 PM