I'm configuring SpotBugs plugin for a Gradle project for the first time.
buildscript {
repositories {
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'gradle.plugin.com.github.spotbugs:spotbugs-gradle-plugin:1.6.6'
}
}
apply plugin: 'com.github.spotbugs'
When running gradle check
I'm getting error Plugin with id 'com.github.spotbugs' not found.
What am I doing wrong?
Gradle version 5.0.
apply plugin: 'java'
at the end to actually get thecheck
task to test with. Do you havecaches/modules-2/files-2.1/gradle.plugin.com.github.spotbugs/spotbugs-gradle-plugin/1.6.6/
in you Gradle user home (typically~/.gradle/
)? Otherwise there might have been an issue with your network connection to the Gradle plugins repository. – Torsionplugins { id "com.github.spotbugs" version "1.6.6" }
DSL? – Drumbeatapply from: 'spotbugs.gradle'
– Pugh