-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
173 lines (145 loc) · 4.03 KB
/
build.gradle
File metadata and controls
173 lines (145 loc) · 4.03 KB
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
buildscript {
ext {
projectVersion = '1.2.1'
gradleWrapperVersion = '3.4.1'
coverallsGradlePluginVersion = '2.8.1'
asmVersion = '5.2'
junitVersion = '4.12'
}
repositories {
mavenCentral()
}
dependencies {
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:' + coverallsGradlePluginVersion
}
}
description = 'JIP is a code profiling tool much like the hprof tool that ships with the JDK'
subprojects {
apply plugin: 'java'
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
}
test.onlyIf {
!Boolean.getBoolean('skip.tests')
}
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.coveralls {
dependsOn 'check'
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = false
}
}
}
project(':jip') {
jar.baseName = 'profile'
jar {
manifest {
attributes 'Premain-Class': 'com.mentorgen.tools.profile.Main'
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
version = null
}
dependencies {
implementation group: 'org.ow2.asm', name: 'asm', version: asmVersion
testImplementation group: 'junit', name: 'junit', version: junitVersion
}
}
project(':jip-plugin') {
jar {
manifest {
attributes 'Bundle-ManifestVersion': 2,
'Bundle-Name': 'JIP Plug-in',
'Bundle-SymbolicName': 'com.mentorgen.tools.profile; singleton:=true',
'Bundle-Version': '1.0.0',
'Bundle-Localization': 'plugin',
'Require-Bundle': 'org.eclipse.core.runtime, org.eclipse.ui',
'Eclipse-AutoStart': 'true',
'Import-Package': 'org.eclipse.core.runtime, org.eclipse.ui, org.eclipse.swt, org.eclipse.jface'
}
}
dependencies {
implementation fileTree(dir: 'lib', include: '*.jar')
}
}
project(':jip-snapman') {
dependencies {
implementation fileTree(dir: 'lib', include: '*.jar')
}
jar {
manifest {
attributes 'Main-Class': 'com.mentorgen.tools.util.profile.Client'
}
}
}
project(':jip-viewer') {
jar {
manifest {
attributes 'Main-Class': 'com.mentorgen.tools.profile.Main'
}
}
}
project(':simple-profiler') {
jar {
manifest {
attributes 'Premain-Class': 'sample.profiler.Main'
}
}
dependencies {
implementation group: 'org.ow2.asm', name: 'asm', version: asmVersion
}
}
project(':verbose-class') {
jar {
manifest {
attributes 'Premain-Class': 'sample.verboseclass.Main'
}
}
}