6

我第一次为 Gradle 项目配置SpotBugs 插件。

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'

运行时gradle check出现错误Plugin with id 'com.github.spotbugs' not found.我做错了什么?

梯度版本 5.0。

4

0 回答 0