This repository has been archived by the owner on Mar 3, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
61 lines (52 loc) · 1.94 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
54
55
56
57
58
59
60
61
plugins {
id 'groovy'
id 'java-gradle-plugin'
id 'jacoco'
id 'com.gradle.plugin-publish' version '0.10.1'
id 'com.diffplug.gradle.spotless' version '3.27.1'
id 'net.ltgt.errorprone' version '1.1.1'
id 'se.patrikerdes.use-latest-versions' version '0.2.13'
id 'com.github.ben-manes.versions' version '0.28.0'
id 'org.sonarqube' version '2.8'
id 'com.gtramontina.ghooks.gradle' version '1.1.1'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = 'com.github.spotbugs.snom'
repositories {
// To download the Android Gradle Plugin
google()
// To download trove4j required by the Android Gradle Plugin
jcenter()
}
ext {
errorproneVersion = '2.3.4'
spotBugsVersion = '4.0.0'
slf4jVersion = '1.8.0-beta4'
androidGradlePluginVersion = '3.5.3'
}
dependencies {
errorprone "com.google.errorprone:error_prone_core:${errorproneVersion}"
compileOnly localGroovy()
compileOnly "com.github.spotbugs:spotbugs:${spotBugsVersion}"
compileOnly "com.android.tools.build:gradle:${androidGradlePluginVersion}"
testImplementation 'com.tngtech.archunit:archunit:0.13.1'
}
groovydoc {
docTitle 'SpotBugs Gradle Plugin'
link 'https://docs.gradle.org/current/javadoc/', 'org.gradle.api.'
link 'https://docs.oracle.com/en/java/javase/11/docs/api/', 'java.'
link 'http://docs.groovy-lang.org/latest/html/gapi/', 'groovy.', 'org.codehaus.groovy.'
}
task processVersionFile(type: WriteProperties) {
outputFile file('src/main/resources/spotbugs-gradle-plugin.properties')
property 'slf4j-version', slf4jVersion
property 'spotbugs-version', spotBugsVersion
}
tasks.processResources.dependsOn processVersionFile
apply from: "$rootDir/gradle/test.gradle"
apply from: "$rootDir/gradle/functional-test.gradle"
apply from: "$rootDir/gradle/spotless.gradle"
apply from: "$rootDir/gradle/errorprone.gradle"
apply from: "$rootDir/gradle/publish.gradle"
defaultTasks 'spotlessApply', 'build'