-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
50 lines (43 loc) · 1.38 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
plugins {
id 'java-gradle-plugin'
id 'com.gradle.plugin-publish' version '0.15.0'
id 'net.researchgate.release' version '3.0.2'
id 'groovy'
}
group = 'com.ullink.gradle'
description 'Uses sonar-scanner-msbuild to do static analysis with Sonarqube.'
dependencies {
implementation (
[group: 'de.undercouch', name: 'gradle-download-task', version: '5.5.0'],
[group: 'org.sonarsource.scanner.gradle', name: 'sonarqube-gradle-plugin', version: '4.0.0.2929']
)
}
release {
git {
requireBranch.set('master')
}
}
gradlePlugin {
plugins {
SonarScannerMsbuildPlugin {
id = 'com.ullink.sonar-scanner-msbuild'
implementationClass = 'com.ullink.gradle.sonar.SonarScannerMsbuildPlugin'
}
}
}
pluginBundle {
website = 'https://www.github.com/Itiviti/gradle-sonar-scanner-msbuild-plugin'
vcsUrl = 'https://www.github.com/Itiviti/gradle-sonar-scanner-msbuild-plugin'
description = 'gradle-sonar-scanner-msbuild-plugin is a Gradle plugin for running sonar with msbuild'
tags = ['msbuild', 'sonar']
plugins {
SonarScannerMsbuildPlugin {
displayName = 'Gradle msbuild sonar plugin'
}
}
mavenCoordinates {
groupId = 'com.ullink.gradle'
artifactId = 'gradle-sonar-scanner-msbuild-plugin'
}
}
tasks.afterReleaseBuild.dependsOn tasks.publishPlugins