-
Notifications
You must be signed in to change notification settings - Fork 9
/
settings.gradle
29 lines (26 loc) · 1.13 KB
/
settings.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
rootProject.name = 'osh-addons'
gradle.ext.oshCoreDir = "$rootDir/../osh-core"
if (!new File(gradle.oshCoreDir).exists())
throw new GradleException('Repository osh-core is missing. Please clone it from https://github.com/opensensorhub/osh-core')
// include osh-core build only if not part of larger build
// this is needed to avoid nested composite builds
// comment this to build against published artifacts
if (gradle.parent == null)
includeBuild gradle.oshCoreDir
// include all folders with build.gradle as subprojects
def excludedProjects = [
'sensorhub-storage-ndbc'
]
FileTree subprojects = fileTree(rootDir).exclude('dist').include('**/build.gradle')
subprojects.files.each { File f ->
File projectFolder = f.parentFile
if (projectFolder != rootDir && !f.absolutePath.contains("ros")) {
String projectName = ':' + projectFolder.name
//String projectName = ':' + rootDir.toPath().relativize(projectFolder.toPath()).toString().replace('/', ':')
//println projectName
if (!excludedProjects.contains(projectName.substring(1))) {
include projectName
project(projectName).projectDir = projectFolder
}
}
}