This repository was archived by the owner on Aug 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
54 lines (44 loc) · 1.76 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
51
52
53
plugins {
id 'com.github.johnrengelman.shadow' version '5.1.0'
id 'java'
}
group 'com.github.goober.sonarqube.plugin'
repositories {
mavenCentral()
jcenter()
}
def sonarqubeVersion = '7.8'
def jacksonVersion = '2.9.9'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
dependencies {
compile 'com.squareup.okhttp3:okhttp:4.0.1'
compile "com.fasterxml.jackson.core:jackson-annotations:${jacksonVersion}"
compile "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}"
compile "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
compileOnly "org.sonarsource.sonarqube:sonar-plugin-api:${sonarqubeVersion}"
compileOnly 'org.projectlombok:lombok:1.18.8'
annotationProcessor 'org.projectlombok:lombok:1.18.8'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.2'
}
assemble.dependsOn(
shadowJar {
archiveClassifier = null
}
)
jar {
manifest {
attributes 'Plugin-Description': 'Decorates pull requests with SonarQube analysis report',
'SonarLint-Supported': false,
'Plugin-Homepage': 'https://github.com/goober/sonarqube-pull-request-decorator-plugin',
'Plugin-License': 'Apache License 2.0',
'Plugin-Version': "${project.version}",
'Plugin-Organization': 'Mathias Åhsberg',
'Sonar-Version': "${sonarqubeVersion}",
'Plugin-IssueTrackerUrl': 'https://github.com/goober/sonarqube-pull-request-decorator-plugin/issues',
'Plugin-Key': 'pullRequestDecoratorPlugin',
'Plugin-Class': 'com.github.goober.sonarqube.plugin.PullRequestDecoratorPlugin',
'Plugin-Name': 'Pull Request Decorator Plugin'
}
}