Closed jjathman closed 6 years ago
Gradle can't download spotbugs plugin, available ony(!) in grdle plugins repository.
I assume you attaching plugin with the old syntax like (because otherwise everything would work):
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'ru.vyarus:gradle-quality-plugin:3.1.0'
}
}
and you did not specify gradlePluginPortal()
as repository. Just add it and everything will work:
repositories {
jcenter()
gradlePluginPortal()
}
Previous spotbugs plugin version (1.6.1) must be cached locally (or on your nexus) and so you don't have problems with 3.0.0, but new version is required now (1.6.2) for gradle 4.8 compatibility.
You are correct, we are using the old syntax. It looks like the problem is that we use Artifactory to proxy all of our dependencies and it doesn't look like it supports the new plugin lookup syntax. We have Artifactory configured to look at https://plugins.gradle.org/m2/ but apparently that is no longer good enough.
You may want to make a note about this in your release notes, I would not have expected this to happen and it's the first time we've run in to this problem as far as I know.
This is a little confusing to me, why does version 3.0.0 have a compile dependency on the spot bugs plugin (http://mvnrepository.com/artifact/ru.vyarus/gradle-quality-plugin/3.0.0) but version 3.1.0 doesn't list it (http://mvnrepository.com/artifact/ru.vyarus/gradle-quality-plugin/3.1.0).
I'm not getting errors from Gradle saying it can't download the plugin which is what I would expect if I had something configured incorrectly. It looks like the plugin is just assuming Spot Bugs is available even though it doesn't list it as a dependency.
Mmm thank you! You are right, that is not correct. Pom in plugin portal is different and everything works with new plugins syntax (and so I didn't noted this problem). I will definitely fix that.
Great, thank you for looking in to it!
Upgrading to version 3.1.0 gives me this error (works fine in version 3.0.0).