-
Notifications
You must be signed in to change notification settings - Fork 223
Expand file tree
/
Copy pathbuild.gradle
More file actions
38 lines (34 loc) · 772 Bytes
/
build.gradle
File metadata and controls
38 lines (34 loc) · 772 Bytes
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
apply plugin: 'distribution'
// Common configuration //
allprojects {
version='2.0.0'
}
subprojects.each { subproject ->
evaluationDependsOn(subproject.path)
}
distributions {
distZip {
// Create JAR files before final ZIP file
dependsOn subprojects.tasks['jar']
// For each file, remove root directory
eachFile { file ->
String path = file.relativePath
file.setPath(path.substring(path.indexOf('/')+1, path.length()))
}
}
main {
contents {
into('features') {
from {
fileTree 'org.jd.ide.eclipse.feature/build/libs'
}
}
into('plugins') {
from {
fileTree 'org.jd.ide.eclipse.plugin/build/libs'
}
}
from 'org.jd.ide.eclipse.site/site.xml', 'LICENSE', 'NOTICE', 'README.md'
}
}
}