gradle: поддержка SonarQube
This commit is contained in:
24
build.gradle
24
build.gradle
@@ -1,3 +1,27 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
maven {
|
||||
url "https://plugins.gradle.org/m2/"
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath (group: 'org.sonarsource.scanner.gradle', name: 'sonarqube-gradle-plugin', version: '2.6.2')
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Проверка кода в SonarQube.
|
||||
* Для запуска локальной проверки кода, используются следующий command line:
|
||||
* gradle sonarqube \
|
||||
* -Dsonar.host.url=http://127.0.0.1:9000
|
||||
* -Dsonar.login=<TOKEN>
|
||||
* где
|
||||
* - <TOKEN> - сгенерированный токен учетки "сонара"
|
||||
*/
|
||||
plugins {
|
||||
id "org.sonarqube" version "2.6.2"
|
||||
}
|
||||
|
||||
allprojects {
|
||||
apply plugin: 'java'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user