-
Notifications
You must be signed in to change notification settings - Fork 50
/
build.gradle
142 lines (118 loc) · 3.26 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
buildscript {
ext {
projectVersion = '1.6'
gradleWrapperVersion = '3.1'
daggerVersion = '2.6'
bcelVersion = '6.0'
commonsIoVersion = '2.5'
slf4jVersion = '1.7.21'
logbackVersion = '1.1.7'
testngVersion = '6.9.13.6'
}
repositories {
mavenCentral()
}
}
plugins {
id "com.github.kt3k.coveralls" version '2.6.3'
}
description = 'JMD is a general purpose Java bytecode deobfuscation tool'
subprojects {
apply plugin: "java"
apply plugin: "findbugs"
apply plugin: "pmd"
apply plugin: "jacoco"
apply plugin: "com.github.kt3k.coveralls"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
version = projectVersion
repositories {
mavenCentral()
}
task wrapper(type: Wrapper) {
gradleVersion = gradleWrapperVersion
}
findbugs {
ignoreFailures = true
effort = 'max'
}
pmd {
ignoreFailures = true
ruleSets = [
'java-basic',
'java-braces',
'java-clone',
'java-codesize',
'java-comments',
'java-controversial',
'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) {
reports {
xml.enabled = false
html.enabled = true
}
}
tasks.withType(FindBugs) {
reports {
xml.enabled = false
html.enabled = true
}
}
tasks.coveralls {
dependsOn 'check'
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = false
}
}
}
project(':jmd-cli') {
dependencies {
compile project(':jmd-core')
}
jar {
manifest {
attributes 'Implementation-Title': 'net.contra.jmd',
'Implementation-Version': version,
'Main-Class': 'net.contra.jmd.Deobfuscator'
}
from {
configurations.compile.collect {
it.isDirectory() ? it : zipTree(it)
}
}
}
}
project(':jmd-core') {
dependencies {
compile group: 'com.google.dagger', name: 'dagger', version: daggerVersion
compile group: 'org.apache.bcel', name: 'bcel', version: bcelVersion
compile group: 'commons-io', name: 'commons-io', version: commonsIoVersion
compile group: 'org.slf4j', name: 'slf4j-api', version: slf4jVersion
compile group: 'ch.qos.logback', name: 'logback-classic', version: logbackVersion
compile group: 'org.testng', name: 'testng', version: testngVersion
}
}
project(':jmd-gui') {
}