forked from my-flow/importlist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
61 lines (52 loc) · 1.52 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
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.4'
classpath 'commons-configuration:commons-configuration:1.10'
classpath 'net.sf.proguard:proguard-gradle:6.0.2'
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'checkstyle'
apply plugin: 'pmd'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'findbugs'
sourceCompatibility = 1.7
ext {
privkeyid = '99'
privkeyfile = "$rootDir/config/priv_key"
pubkeyfile = "$rootDir/config/pub_key"
mxtfile = "${project(':core').distsDir}/${rootProject.name}.mxt"
}
repositories {
mavenCentral()
flatDir dirs: "$rootDir/lib"
}
findbugs {
effort = "max"
reportLevel = "medium"
}
tasks.withType(FindBugs) {
reports {
xml.enabled = false
html.enabled = true
}
}
task checkstyleHtml(dependsOn: checkstyleMain) {
if (checkstyleMain.reports.xml.destination.exists()) {
ant.xslt(in: checkstyleMain.reports.xml.destination,
style: file("$rootDir/config/checkstyle-noframes-sorted.xsl"),
out: new File(checkstyleMain.reports.xml.destination.parent as String, 'main.html'))
}
}
checkstyleMain.finalizedBy checkstyleHtml
pmd {
sourceSets = [sourceSets.main]
ruleSetFiles = files('config/ruleSet.xml')
}
}