forked from ome/omero-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
57 lines (48 loc) · 1.63 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
import com.google.common.base.CaseFormat
task publishBinaryAndSourcesToGitlabRepository {
group "omero"
description "Calls publish\${projet.name}BinaryAndSourcesPublicationToGitlabRepository on all subprojects"
dependsOn gradle.includedBuilds.collect {
it.task(":publish${camelCaseName(it)}BinaryAndSourcesPublicationToGitlabRepository")
}
}
task publishBinaryAndSourcesToMavenLocal {
group "omero"
description "Calls publish\${projet.name}BinaryAndSourcesPublicationToMavenLocal on all subprojects"
dependsOn gradle.includedBuilds.collect {
it.task(":publish${camelCaseName(it)}BinaryAndSourcesPublicationToMavenLocal")
}
}
task publishToMavenLocal {
group "omero"
description "Calls publishToMavenLocal on all subprojects"
dependsOn gradle.includedBuilds*.task(':publishToMavenLocal')
}
task publish {
group "omero"
description "Calls publish on all subprojects"
dependsOn gradle.includedBuilds*.task(':publish')
}
task assemble {
group "omero"
description "Calls assemble on all subprojects"
dependsOn gradle.includedBuilds*.task(':assemble')
}
task clean {
group "omero"
description "Calls clean on all subprojects"
dependsOn gradle.includedBuilds*.task(':clean')
}
task test {
group "omero"
description "Calls test on all subprojects"
dependsOn gradle.includedBuilds*.task(':test')
}
task javadoc {
group "omero"
description "Calls javadoc on all subprojects"
dependsOn gradle.includedBuilds*.task(':javadoc')
}
String camelCaseName(IncludedBuild ib) {
CaseFormat.LOWER_HYPHEN.to(CaseFormat.LOWER_CAMEL, ib.name).capitalize()
}