blob: d78a5afb255a94dd7eb6e7e13ee2d389935812fe [file] [log] [blame]
// Calling includeProject(name, filePath) is shorthand for:
//
// include(name)
// project(name).projectDir = new File(filePath)
//
// Note that <name> directly controls the Gradle project name, and also indirectly sets:
// the project name in the IDE
// the Maven artifactId
//
def includeProject(name, filePath) {
settings.include(name)
def file
if (filePath instanceof String) {
file = new File(filePath)
} else {
file = filePath
}
project(name).projectDir = file
}
includeProject(":annotation:annotation-sampled", "../annotation/annotation-sampled")
includeProject(":benchmark", "../benchmark")
includeProject(":benchmark:benchmark-gradle-plugin", "../benchmark/gradle-plugin")
includeProject(":compose:compose-runtime", "../compose/compose-runtime")
includeProject(":compose:compose-compiler-hosted", "../compose/compose-compiler-hosted")
includeProject(":compose:compose-compiler-hosted:integration-tests", "../compose/compose-compiler-hosted/integration-tests")
includeProject(":compose:compose-compiler", "../compose/compose-compiler")
includeProject(":compose:compose-ide-plugin", "../compose/compose-ide-plugin")
includeProject(":ui-android-text", "android-text")
includeProject(":ui-text", "text")
includeProject(":ui-text:integration-tests:ui-text-demos", "text/integration-tests/text-demos")
includeProject(":ui-core", "core")
includeProject(":ui-framework", "framework")
includeProject(":ui-framework:integration-tests:ui-framework-demos", "framework/integration-tests/framework-demos")
includeProject(":ui-material", "material")
includeProject(":ui-material:integration-tests:ui-material-demos", "material/integration-tests/material-demos")
includeProject(":ui-material:integration-tests:samples", "material/integration-tests/samples")
includeProject(":ui-material:integration-tests:ui-material-studies", "material/integration-tests/material-studies")
includeProject(":ui-platform", "platform")
includeProject(":ui-test", "test")
includeProject(":ui-android-view", "android-view")
includeProject(":ui-android-view-non-ir", "android-view-non-ir")
includeProject(":ui-layout", "layout")
includeProject(":ui-layout:integration-tests:ui-layout-demos", "layout/integration-tests/layout-demos")
includeProject(":ui-layout:integration-tests:samples", "layout/integration-tests/samples")
includeProject(":ui-demos", "demos")
includeProject(":ui-animation-core", "animation-core")
includeProject(":ui-animation", "animation")
includeProject(":ui-animation:integration-tests:ui-animation-demos", "animation/integration-tests/animation-demos")
/////////////////////////////
//
// External
//
/////////////////////////////
apply(from: "../include-composite-deps.gradle")
if (!startParameter.projectProperties.containsKey('android.injected.invoked.from.ide')) {
// we don't need it in ide, so we don't configure it there
includeProject(":docs-fake", "../docs-fake")
includeProject(":docs-runner", "../docs-runner")
}
// dumb test project that has a test for each size to ensure that at least one test is run
// for each size and test runner is happy when there is nothing to test.
includeProject(":dumb-tests", "../dumb-tests")
includeProject(":fakeannotations", "../fakeannotations")