Aurimas Liutikas | aa460b0 | 2019-04-25 16:03:21 -0700 | [diff] [blame] | 1 | // Calling includeProject(name, filePath) is shorthand for: |
| 2 | // |
| 3 | // include(name) |
| 4 | // project(name).projectDir = new File(filePath) |
| 5 | // |
| 6 | // Note that <name> directly controls the Gradle project name, and also indirectly sets: |
| 7 | // the project name in the IDE |
| 8 | // the Maven artifactId |
| 9 | // |
| 10 | def includeProject(name, filePath) { |
| 11 | settings.include(name) |
| 12 | |
| 13 | def file |
| 14 | if (filePath instanceof String) { |
| 15 | file = new File(filePath) |
| 16 | } else { |
| 17 | file = filePath |
| 18 | } |
| 19 | project(name).projectDir = file |
| 20 | } |
| 21 | |
Louis Pullen-Freilich | f9515b1 | 2019-06-03 19:52:29 +0100 | [diff] [blame^] | 22 | includeProject(":annotation:annotation-sampled", "../annotation/annotation-sampled") |
Chris Craik | d9a7be4 | 2019-06-21 09:51:05 -0700 | [diff] [blame] | 23 | includeProject(":benchmark", "../benchmark") |
| 24 | includeProject(":benchmark:benchmark-gradle-plugin", "../benchmark/gradle-plugin") |
Chuck Jazdzewski | 4c1c82f | 2019-06-18 08:51:59 -0700 | [diff] [blame] | 25 | includeProject(":compose:compose-runtime", "../compose/compose-runtime") |
| 26 | includeProject(":compose:compose-compiler-hosted", "../compose/compose-compiler-hosted") |
| 27 | includeProject(":compose:compose-compiler-hosted:integration-tests", "../compose/compose-compiler-hosted/integration-tests") |
| 28 | includeProject(":compose:compose-compiler", "../compose/compose-compiler") |
| 29 | includeProject(":compose:compose-ide-plugin", "../compose/compose-ide-plugin") |
Aurimas Liutikas | aa460b0 | 2019-04-25 16:03:21 -0700 | [diff] [blame] | 30 | includeProject(":ui-android-text", "android-text") |
| 31 | includeProject(":ui-text", "text") |
| 32 | includeProject(":ui-text:integration-tests:ui-text-demos", "text/integration-tests/text-demos") |
| 33 | includeProject(":ui-core", "core") |
| 34 | includeProject(":ui-framework", "framework") |
| 35 | includeProject(":ui-framework:integration-tests:ui-framework-demos", "framework/integration-tests/framework-demos") |
| 36 | includeProject(":ui-material", "material") |
| 37 | includeProject(":ui-material:integration-tests:ui-material-demos", "material/integration-tests/material-demos") |
Louis Pullen-Freilich | f9515b1 | 2019-06-03 19:52:29 +0100 | [diff] [blame^] | 38 | includeProject(":ui-material:integration-tests:samples", "material/integration-tests/samples") |
Louis Pullen-Freilich | 2694068 | 2019-05-01 16:44:01 +0100 | [diff] [blame] | 39 | includeProject(":ui-material:integration-tests:ui-material-studies", "material/integration-tests/material-studies") |
Aurimas Liutikas | aa460b0 | 2019-04-25 16:03:21 -0700 | [diff] [blame] | 40 | includeProject(":ui-platform", "platform") |
| 41 | includeProject(":ui-test", "test") |
| 42 | includeProject(":ui-android-view", "android-view") |
| 43 | includeProject(":ui-android-view-non-ir", "android-view-non-ir") |
| 44 | includeProject(":ui-layout", "layout") |
| 45 | includeProject(":ui-layout:integration-tests:ui-layout-demos", "layout/integration-tests/layout-demos") |
| 46 | includeProject(":ui-demos", "demos") |
Aurimas Liutikas | aa460b0 | 2019-04-25 16:03:21 -0700 | [diff] [blame] | 47 | includeProject(":ui-animation-core", "animation-core") |
| 48 | includeProject(":ui-animation", "animation") |
| 49 | includeProject(":ui-animation:integration-tests:ui-animation-demos", "animation/integration-tests/animation-demos") |
| 50 | |
| 51 | |
| 52 | ///////////////////////////// |
| 53 | // |
| 54 | // External |
| 55 | // |
| 56 | ///////////////////////////// |
| 57 | |
| 58 | apply(from: "../include-composite-deps.gradle") |
| 59 | |
| 60 | if (!startParameter.projectProperties.containsKey('android.injected.invoked.from.ide')) { |
| 61 | // we don't need it in ide, so we don't configure it there |
| 62 | includeProject(":docs-fake", "../docs-fake") |
| 63 | includeProject(":docs-runner", "../docs-runner") |
| 64 | } |
Leland Richardson | 0fdc6a4 | 2019-04-30 17:50:54 -0700 | [diff] [blame] | 65 | |
| 66 | // dumb test project that has a test for each size to ensure that at least one test is run |
| 67 | // for each size and test runner is happy when there is nothing to test. |
Louis Pullen-Freilich | aea125d | 2019-05-01 14:56:11 +0100 | [diff] [blame] | 68 | includeProject(":dumb-tests", "../dumb-tests") |
Aurimas Liutikas | acd7045 | 2019-05-06 18:01:07 -0700 | [diff] [blame] | 69 | |
| 70 | includeProject(":fakeannotations", "../fakeannotations") |