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 | 7ccc99a | 2019-09-11 13:09:34 -0700 | [diff] [blame] | 23 | includeProject(":annotation:annotation-experimental", "../annotation/annotation-experimental") |
| 24 | includeProject(":annotation:annotation-experimental-lint", "../annotation/annotation-experimental-lint") |
| 25 | includeProject(":annotation:annotation-experimental-lint-integration-tests", "../annotation/annotation-experimental-lint/integration-tests") |
Chris Craik | e2022ae | 2019-07-24 15:21:39 -0700 | [diff] [blame] | 26 | includeProject(":benchmark:benchmark-common", "../benchmark/common") |
Chris Craik | 22c3392 | 2019-07-25 12:33:06 -0700 | [diff] [blame] | 27 | includeProject(":benchmark:benchmark-junit4", "../benchmark/junit4") |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 28 | includeProject(":compose:compose-compiler", "../compose/compose-compiler") |
Chuck Jazdzewski | 4c1c82f | 2019-06-18 08:51:59 -0700 | [diff] [blame] | 29 | includeProject(":compose:compose-compiler-hosted", "../compose/compose-compiler-hosted") |
| 30 | includeProject(":compose:compose-compiler-hosted:integration-tests", "../compose/compose-compiler-hosted/integration-tests") |
Chuck Jazdzewski | 4c1c82f | 2019-06-18 08:51:59 -0700 | [diff] [blame] | 31 | includeProject(":compose:compose-ide-plugin", "../compose/compose-ide-plugin") |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 32 | includeProject(":compose:compose-runtime", "../compose/compose-runtime") |
Chris Craik | 70ef6c6 | 2019-07-15 11:20:00 -0700 | [diff] [blame] | 33 | includeProject(":compose:compose-runtime-benchmark", "../compose/compose-runtime/compose-runtime-benchmark") |
Louis Pullen-Freilich | fed7aa5 | 2019-09-13 22:35:28 -0700 | [diff] [blame] | 34 | includeProject(":compose:compose-runtime:integration-tests:samples", "../compose/compose-runtime/integration-tests/samples") |
Louis Pullen-Freilich | c957e24 | 2019-10-07 16:37:32 +0100 | [diff] [blame] | 35 | includeProject(":ui:integration-tests:benchmark", "integration-tests/benchmark") |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 36 | includeProject(":ui:integration-tests:demos", "integration-tests/demos") |
| 37 | includeProject(":ui:integration-tests:test", "integration-tests/test") |
| 38 | includeProject(":ui:ui-android-text", "ui-android-text") |
| 39 | includeProject(":ui:ui-android-view", "ui-android-view") |
| 40 | includeProject(":ui:ui-android-view-non-ir", "ui-android-view-non-ir") |
| 41 | includeProject(":ui:ui-animation", "ui-animation") |
| 42 | includeProject(":ui:ui-animation-core", "ui-animation-core") |
Andrey Kulikov | ce95e0d7 | 2019-10-18 17:40:06 +0100 | [diff] [blame] | 43 | includeProject(":ui:ui-animation-core:integration-tests:samples", "ui-animation-core/integration-tests/samples") |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 44 | includeProject(":ui:ui-animation:integration-tests:ui-animation-demos", "ui-animation/integration-tests/animation-demos") |
Andrey Kulikov | 2a7d1ce | 2019-10-08 18:06:41 +0100 | [diff] [blame] | 45 | includeProject(":ui:ui-animation:integration-tests:samples", "ui-animation/integration-tests/samples") |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 46 | includeProject(":ui:ui-core", "ui-core") |
Andrey Kulikov | 79f6b42 | 2019-10-15 16:08:38 +0100 | [diff] [blame] | 47 | includeProject(":ui:ui-core:integration-tests:samples", "ui-core/integration-tests/samples") |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 48 | includeProject(":ui:ui-foundation", "ui-foundation") |
Matvei Malkov | 5424937 | 2019-07-12 16:53:00 +0100 | [diff] [blame] | 49 | includeProject(":ui:ui-foundation:integration-tests:samples", "ui-foundation/integration-tests/samples") |
Matvei Malkov | 453eda8 | 2019-07-19 18:49:17 +0100 | [diff] [blame] | 50 | includeProject(":ui:ui-foundation:integration-tests:ui-foundation-demos", "ui-foundation/integration-tests/foundation-demos") |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 51 | includeProject(":ui:ui-framework", "ui-framework") |
| 52 | includeProject(":ui:ui-framework:integration-tests:ui-framework-demos", "ui-framework/integration-tests/framework-demos") |
Andrey Kulikov | aa4584b | 2019-07-03 17:00:09 +0100 | [diff] [blame] | 53 | includeProject(":ui:ui-framework:integration-tests:samples", "ui-framework/integration-tests/samples") |
Louis Pullen-Freilich | 54b4c11 | 2019-10-23 19:05:56 +0100 | [diff] [blame^] | 54 | includeProject(":ui:ui-internal-lint-checks", "ui-internal-lint-checks") |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 55 | includeProject(":ui:ui-layout", "ui-layout") |
| 56 | includeProject(":ui:ui-layout:integration-tests:samples", "ui-layout/integration-tests/samples") |
| 57 | includeProject(":ui:ui-layout:integration-tests:ui-layout-demos", "ui-layout/integration-tests/layout-demos") |
| 58 | includeProject(":ui:ui-material", "ui-material") |
| 59 | includeProject(":ui:ui-material:integration-tests:samples", "ui-material/integration-tests/samples") |
| 60 | includeProject(":ui:ui-material:integration-tests:ui-material-demos", "ui-material/integration-tests/material-demos") |
| 61 | includeProject(":ui:ui-material:integration-tests:ui-material-studies", "ui-material/integration-tests/material-studies") |
| 62 | includeProject(":ui:ui-platform", "ui-platform") |
| 63 | includeProject(":ui:ui-test", "ui-test") |
| 64 | includeProject(":ui:ui-text", "ui-text") |
| 65 | includeProject(":ui:ui-text:integration-tests:ui-text-demos", "ui-text/integration-tests/text-demos") |
Florina Muntenescu | 7332b43 | 2019-10-01 16:33:30 -0300 | [diff] [blame] | 66 | includeProject(":ui:ui-text:integration-tests:ui-text-samples", "ui-text/integration-tests/samples") |
Chuck Jazdzewski | e7725b9 | 2019-06-24 08:51:16 -0700 | [diff] [blame] | 67 | includeProject(":ui:ui-tooling", "ui-tooling") |
Nader Jawad | 4cfb5de | 2019-06-26 16:24:23 -0700 | [diff] [blame] | 68 | includeProject(":ui:ui-vector", "ui-vector") |
Cătălin Tudor | a2ed24e | 2019-07-04 13:50:58 +0100 | [diff] [blame] | 69 | |
Aurimas Liutikas | aa460b0 | 2019-04-25 16:03:21 -0700 | [diff] [blame] | 70 | ///////////////////////////// |
| 71 | // |
| 72 | // External |
| 73 | // |
| 74 | ///////////////////////////// |
| 75 | |
| 76 | apply(from: "../include-composite-deps.gradle") |
| 77 | |
| 78 | if (!startParameter.projectProperties.containsKey('android.injected.invoked.from.ide')) { |
| 79 | // we don't need it in ide, so we don't configure it there |
| 80 | includeProject(":docs-fake", "../docs-fake") |
| 81 | includeProject(":docs-runner", "../docs-runner") |
| 82 | } |
Leland Richardson | 0fdc6a4 | 2019-04-30 17:50:54 -0700 | [diff] [blame] | 83 | |
| 84 | // dumb test project that has a test for each size to ensure that at least one test is run |
| 85 | // 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] | 86 | includeProject(":dumb-tests", "../dumb-tests") |
Aurimas Liutikas | acd7045 | 2019-05-06 18:01:07 -0700 | [diff] [blame] | 87 | |
Filip Pavlis | 2044790 | 2019-07-01 20:34:25 +0100 | [diff] [blame] | 88 | includeProject(":fakeannotations", "../fakeannotations") |