Spring Boot 未找到ID为’unship.com’的插件

Spring Boot 未找到ID为’unship.com’的插件

我正在尝试用gradle实现声纳,以便为我的项目进行代码覆盖测量。我们正在使用gradle-4.0.1和sonarqube-6.4。当我从命令行运行gradle sonarqube时,我会收到此错误-

Plugin with id ‘org.sonarqube’ not found.

我尝试了一些代码更改,但没有运气,请帮助。我的build.gradle文件如下-

buildscript { ext { springBootVersion = ‘1.5.4.RELEASE’ } repositories { mavenCentral() } dependencies { classpath(“org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}”) }}apply plugin: ‘org.sonarqube’apply plugin: “jacoco”apply plugin: “java”apply plugin: “war”apply plugin: “org.springframework.boot”sonarqube { properties { property “sonar.projectName”,”Spring4WebService Code Coverage Demo” property “sonar.projectKey”, “org.sonarqubeJacocoCodeCoverage” property “sonar.reportPath” , “${project.buildDir}/jacoco/test.exec” }}test{ ignoreFailures = true}ext { jacocoVersion = ‘0.7.6.201602180812’}sourceCompatibility = 1.8targetCompatibility = 1.8repositories { mavenCentral()}sourceSets { main.java.srcDir “src/main/java” test.java.srcDir “src/test/java”}springBoot { mainClass = “com.concretepage.config.WebAppInitializer”}dependencies { compile(‘org.springframework.boot:spring-boot-starter-web’,’com.fasterxml.jackson.core:jackson-databind’) testCompile(‘org.springframework.boot:spring-boot-starter-test’)}jacoco{ toolVersion = “${jacocoVersion}”}jacocoTestReport { reports{ html.enabled=true xml.enabled=true csv.enabled=true }}


比丘资源网 » Spring Boot 未找到ID为’unship.com’的插件

发表回复

提供最优质的资源集合

立即查看 了解详情