forked from liferay/liferay-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle
More file actions
26 lines (21 loc) · 711 Bytes
/
settings.gradle
File metadata and controls
26 lines (21 loc) · 711 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
FileTree fileTree = fileTree(rootDir) {
exclude "**/tmp/**"
exclude "ext/**"
exclude "hooks/antisamy-hook/**"
exclude "hooks/google-mail-groups-hook/**"
exclude "hooks/google-mail-users-hook/**"
exclude "portlets/opensocial-portlet/**"
exclude "portlets/sync-admin-portlet/**"
exclude "portlets/wsrp-portlet/**"
exclude "shared/google-apps-connector-shared/**"
exclude "tools/**"
exclude "webs/sync-web/**"
include "**/build.gradle"
}
URI rootURI = rootDir.toURI()
fileTree.each {
File buildGradleFile ->
String moduleDirName = rootURI.relativize(buildGradleFile.toURI())
moduleDirName = moduleDirName.replaceFirst("/build.gradle", "")
include ":" + moduleDirName.replaceAll("[\\/]", ":")
}