-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
119 lines (94 loc) · 3.25 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
description = """
TestMiner
Project name: ${project.name}
More detailed information here... """
version = '1.0-alpha'
subprojects {
repositories {
mavenCentral()
}
}
project(':indexer') {
apply plugin: 'java'
version = '1.0-alpha'
configurations {
extraLibs
}
dependencies {
extraLibs group: 'com.google.code.gson', name: 'gson', version: '+'
extraLibs group: 'org.apache.commons', name: 'commons-lang3', version: '+'
configurations.compile.extendsFrom(configurations.extraLibs)
}
jar {
from {
configurations.extraLibs.collect { it.isDirectory() ? it : zipTree(it) }
}
}
uploadArchives {
repositories {
flatDir {
dirs "$rootProject.projectDir/release"
}
}
}
}
project(':analysis') {
apply plugin: 'java'
apply plugin: 'scala'
version = '1.0-alpha'
configurations {
runtime {
extendsFrom compile
}
extraLibs
}
dependencies {
extraLibs group: 'org.scala-lang', name: 'scala-library', version: '2.11.8'
extraLibs group: 'io.spray', name: 'spray-json_2.11', version: '+'
extraLibs group: 'org.eclipse.jdt', name: 'org.eclipse.jdt.core', version: '+'
extraLibs group: 'org.apache.commons', name: 'commons-lang3', version: '+'
extraLibs group: 'com.github.tototoshi', name: 'scala-csv_2.11', version: '1.+'
extraLibs group: 'org.eclipse.aether', name: 'aether-impl', version: '1.1.0'
extraLibs group: 'org.eclipse.aether', name: 'aether-connector-basic', version: '1.1.0'
extraLibs group: 'org.eclipse.aether', name: 'aether-transport-file', version: '1.1.0'
extraLibs group: 'org.eclipse.aether', name: 'aether-transport-http', version: '1.1.0'
extraLibs group: 'org.apache.maven', name: 'maven-aether-provider', version: '3.3.9'
extraLibs files('libs/maven_indexer/indexer-cli-deps.jar')
extraLibs files('libs/maven_indexer/indexer-core-deps.jar')
extraLibs files('libs/maven_indexer/indexer-examples-basic.jar')
configurations.compile.extendsFrom(configurations.extraLibs)
}
jar {
from {
configurations.extraLibs.collect { it.isDirectory() ? it : zipTree(it) }
}
}
task index(type: JavaExec) {
description = "Download of Maven Central index"
classpath sourceSets.main.runtimeClasspath
main = "testminer.maven.DownloadIndex"
if ( System.getProperty("exec.args") != null ) {
args System.getProperty("exec.args").trim().split(",")
}
}
task parse(type: JavaExec) {
description = "Parsing and analysis of Maven Central source-code"
classpath sourceSets.main.runtimeClasspath
main = "testminer.parser.ParseSource"
if ( System.getProperty("exec.args") != null ) {
args System.getProperty("exec.args").trim().split(",")
}
}
uploadArchives {
repositories {
flatDir {
dirs "$rootProject.projectDir/release"
}
}
}
}
task copyDeps(type: Copy) {
from(subprojects.configurations)
into project.file('release')
}
task copyFiles(dependsOn: [copyDeps])