forked from opensensorhub/osh-addons
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsettings.gradle
More file actions
33 lines (31 loc) · 1.29 KB
/
settings.gradle
File metadata and controls
33 lines (31 loc) · 1.29 KB
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
rootProject.name = 'osh-addons'
//gradle.ext.oshCoreDir = "$rootDir/../osh-core"
if (gradle.hasProperty('oshCoreDir') && new File(gradle.oshCoreDir).exists()) {
// 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) {
println "Including local osh-core"
includeBuild gradle.oshCoreDir
}
}
// include all folders with build.gradle as subprojects
def excludedProjects = [
'sensorhub-storage-ndbc',
'sensorhub-driver-nexrad', // TODO update driver to use newest version of osh-core
'sensorhub-driver-usgswater', // TODO update driver to use newest version of osh-core
'sensorhub-test'
]
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
}
}
}