-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
49 lines (39 loc) · 1.92 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
group 'com.helpers.classrelationship'
version '1.0.0-SNAPSHOT'
apply plugin: 'groovy'
apply plugin: 'java'
sourceCompatibility = 1.9
def deps = [
]
repositories {
mavenCentral()
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.4.11'
compile 'com.google.guava:guava:23.0'
compile 'org.yaml:snakeyaml:1.18'
compile 'org.codehaus.gpars:gpars:1.2.1'
compile 'commons-io:commons-io:2.6'
compile 'org.apache.bcel:bcel:6.3.1'
compile 'org.neo4j:neo4j:3.5.8'
}
task analyzeJars (dependsOn: 'classes', type: JavaExec) {
//jvmArgs "-Xmx6G"
description "Generates inter-application class relationship based on jar to application mapping and pushes it into neo4j db" +
" -PappMap ;-separated list of directories with jars to analyze in format path=ProductName, i.e. /opt/project1/lib1,/opt/project1/lib2=Project1;/opt/project2/lib=Project2,\n" +
" -PclassInclude regex for class package to include in analysis (class entities and class-level relationship)\n" +
" -PclassExclude - regex for class package to exclude in analysis (class entities and class-level relationship)\n" +
" -PmethodInclude - regex for class package to include in METHOD BODY analysis (detects calls from a method to external/this class)\n" +
" -PmethodExclude - regex for class package to exclude in METHOD BODY analysis (detects calls from a method to external/this class)\n" +
" -PdbFile - db file path"
main = 'com.helpers.classrelationship.Analyzer'
classpath = sourceSets.main.runtimeClasspath
args(
project.findProperty("appMap") ?: "",
project.findProperty("classInclude") ?: ".*",
project.findProperty("classExclude") ?: "NOT_MATCHED",
project.findProperty("methodInclude") ?: ".*",
project.findProperty("methodExclude") ?: "NOT_MATCHED",
project.findProperty("dbFile") ?: ""
)
}