forked from LibraryOfCongress/bagger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
50 lines (41 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
49
50
subprojects{
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'findbugs'
apply plugin: 'pmd'
apply from: '../eclipse.gradle'
group = 'loc-repository'
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
maven { url "http://spring-rich-c.sourceforge.net/maven2repository" }
jcenter()
mavenCentral()
}
test { //show test output
testLogging.showStandardStreams = true
}
findbugsTest.enabled = false
findbugs {
ignoreFailures = true //don't fail the gradle build if bugs are found
}
tasks.withType(FindBugs) {
reports {
xml.enabled = false
html.enabled = true
}
}
pmd {
ruleSets = ["java-basic", "java-braces"]
ignoreFailures = true //don't fail the gradle build if rules are broken
}
//sign all the bagger jars
jar.doLast {
ant.signjar(destDir: jar.destinationDir,
jar: jar.archivePath,
alias:"rdc",
keystore:"${rootDir.path}/keystore/bagger.ks",
storepass:"bagger-rdc",
preservelastmodified:"true")
}
}