-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
48 lines (41 loc) · 984 Bytes
/
Copy pathbuild.gradle
File metadata and controls
48 lines (41 loc) · 984 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
39
40
41
42
43
44
45
46
47
48
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
}
def cleanTasks = subprojects.collect { project ->
"${project.name}:clean"
}
task clean(dependsOn: cleanTasks) << {
delete "$buildDir"
}
def assembleTasks = subprojects.collect { project ->
"${project.name}:assemble"
}
task release(dependsOn: assembleTasks) << {
def distsDirName = "$buildDir/distributions"
def dst = mkdir(distsDirName)
def srcs = subprojects.collect { project ->
project.libsDir
}
copy {
from srcs
into dst
}
}
project(':image-processing') {
jar {
sourceSets.main.resources.exclude '*'
}
}
project(':image-editor') {
dependencies {
compile project(':image-processing')
}
jar {
manifest {
attributes 'Main-Class': 'Main'
attributes 'Class-Path': configurations.compile.collect { it.name }.join(' ')
}
sourceSets.main.resources.exclude '*'
}
}