forked from spotbugs/spotbugs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
48 lines (40 loc) · 1.04 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
plugins {
id "com.github.spotbugs" version "1.5"
}
apply from: "$rootDir/gradle/checkstyle.gradle"
apply from: "$rootDir/gradle/javadoc.gradle"
apply from: "$rootDir/gradle/maven.gradle"
dependencies {
compileOnly 'junit:junit:4.12'
compileOnly project(':spotbugs')
compile project(':test-harness-core')
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives jar, javadocJar, sourcesJar
}
uploadArchives {
repositories {
mavenDeployer {
pom.project {
name 'JUnit 4 Test Harness for SpotBugs Plugin'
description 'A test harness library for SpotBugs plugin developers to test on JUnit4'
}
}
}
}
// Module name should be reverse-DNS (com.github.spotbugs) just like package name
// http://blog.joda.org/2017/04/java-se-9-jpms-module-naming.html
ext.moduleName = 'com.github.spotbugs.test'
apply from: "$rootDir/gradle/jigsaw.gradle"
spotbugs {
effort = "max"
reportLevel = "high"
}