forked from cederberg/mibble
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
90 lines (78 loc) · 1.9 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/*
* Mibble MIB Parser (www.mibble.org)
*
* See LICENSE.txt for licensing information.
*
* Copyright (c) 2015-2017 Per Cederberg. All rights reserved.
*/
apply plugin: 'java'
apply plugin: 'pmd'
apply plugin: 'findbugs'
ant.importBuild 'build.xml'
repositories {
jcenter()
flatDir {
dirs 'lib'
}
}
// Common (project specific) Configuration
dependencies {
compile name: 'grammatica-1.6'
compile name: 'snmp6_1'
}
sourceSets {
main {
java {
srcDir 'src/java'
}
}
}
// PMD (https://pmd.github.io/) Configuration
pmd {
ignoreFailures = true
sourceSets = [sourceSets.main]
reportsDir = file("$project.buildDir/reports/pmd")
ruleSets = [
'java-basic',
/** ignoring currently as code is analysed more will be enabled
'java-braces',
'java-clone',
'java-codesize',
'java-comments',
'java-controversial',
'java-coupling',
'java-design',
'java-empty',
'java-finalizers',
'java-imports',
'java-j2ee',
'java-javabeans',
'java-junit',
'java-logging-jakarta-commons',
'java-logging-java',
'java-migrating',
'java-naming',
'java-optimizations',
'java-strictexception',
'java-strings',
'java-sunsecure',
'java-typeresolution',
'java-unnecessary',
'java-unusedcode' **/
]
}
tasks.withType(Pmd) {
exclude "**/Asn1*", "**/MibAnalyzer*"
}
// Findbugs (http://findbugs.sourceforge.net/) Configuration
findbugs {
ignoreFailures = true
sourceSets = [sourceSets.main]
}
tasks.withType(FindBugs) {
exclude "**/Asn1*", "**/MibAnalyzer*"
reports {
xml.enabled = false
html.enabled = true
}
}