| Jeff Gaston | bf4a4ab | 2019-08-22 18:40:58 -0400 | [diff] [blame] | 1 | pluginManagement { |
| 2 | repositories { |
| 3 | maven { |
| 4 | url = new File(buildscript.sourceFile.parent + "/../../../prebuilts/androidx/external").getCanonicalFile() |
| 5 | } |
| 6 | } |
| 7 | } |
| 8 | |
| Aurimas Liutikas | aa460b0 | 2019-04-25 16:03:21 -0700 | [diff] [blame] | 9 | // Calling includeProject(name, filePath) is shorthand for: |
| 10 | // |
| 11 | // include(name) |
| 12 | // project(name).projectDir = new File(filePath) |
| 13 | // |
| 14 | // Note that <name> directly controls the Gradle project name, and also indirectly sets: |
| 15 | // the project name in the IDE |
| 16 | // the Maven artifactId |
| 17 | // |
| 18 | def includeProject(name, filePath) { |
| 19 | settings.include(name) |
| 20 | |
| 21 | def file |
| 22 | if (filePath instanceof String) { |
| Jeff Gaston | f736153 | 2020-01-28 15:40:45 -0500 | [diff] [blame] | 23 | file = new File(rootDir, filePath) |
| Aurimas Liutikas | aa460b0 | 2019-04-25 16:03:21 -0700 | [diff] [blame] | 24 | } else { |
| 25 | file = filePath |
| 26 | } |
| Jeff Gaston | f736153 | 2020-01-28 15:40:45 -0500 | [diff] [blame] | 27 | if (!file.exists()) { |
| 28 | throw new Exception("Path " + file + " does not exist; cannot include project " + name) |
| 29 | } |
| Aurimas Liutikas | aa460b0 | 2019-04-25 16:03:21 -0700 | [diff] [blame] | 30 | project(name).projectDir = file |
| 31 | } |
| 32 | |
| Louis Pullen-Freilich | f9515b1 | 2019-06-03 19:52:29 +0100 | [diff] [blame] | 33 | includeProject(":annotation:annotation-sampled", "../annotation/annotation-sampled") |
| Chris Craik | 7ccc99a | 2019-09-11 13:09:34 -0700 | [diff] [blame] | 34 | includeProject(":annotation:annotation-experimental", "../annotation/annotation-experimental") |
| 35 | includeProject(":annotation:annotation-experimental-lint", "../annotation/annotation-experimental-lint") |
| 36 | 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] | 37 | includeProject(":benchmark:benchmark-common", "../benchmark/common") |
| Chris Craik | 22c3392 | 2019-07-25 12:33:06 -0700 | [diff] [blame] | 38 | includeProject(":benchmark:benchmark-junit4", "../benchmark/junit4") |
| Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 39 | includeProject(":compose:compose-compiler", "../compose/compose-compiler") |
| Chuck Jazdzewski | 4c1c82f | 2019-06-18 08:51:59 -0700 | [diff] [blame] | 40 | includeProject(":compose:compose-compiler-hosted", "../compose/compose-compiler-hosted") |
| 41 | includeProject(":compose:compose-compiler-hosted:integration-tests", "../compose/compose-compiler-hosted/integration-tests") |
| Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 42 | includeProject(":compose:compose-runtime", "../compose/compose-runtime") |
| Chris Craik | 70ef6c6 | 2019-07-15 11:20:00 -0700 | [diff] [blame] | 43 | includeProject(":compose:compose-runtime-benchmark", "../compose/compose-runtime/compose-runtime-benchmark") |
| Louis Pullen-Freilich | feef695c | 2020-03-09 22:05:52 +0000 | [diff] [blame] | 44 | includeProject(":compose:compose-runtime:samples", "../compose/compose-runtime/samples") |
| Jeff Gaston | 427c4f9 | 2020-01-28 15:24:59 -0500 | [diff] [blame] | 45 | includeProject(":lint-checks", "../lint-checks") |
| Rahul Ravikumar | 6b603b2 | 2020-03-05 17:18:31 -0800 | [diff] [blame] | 46 | includeProject(":tracing:tracing", "../tracing/tracing") |
| 47 | includeProject(":tracing:tracing-ktx", "../tracing/tracing-ktx") |
| Louis Pullen-Freilich | c957e24 | 2019-10-07 16:37:32 +0100 | [diff] [blame] | 48 | includeProject(":ui:integration-tests:benchmark", "integration-tests/benchmark") |
| Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 49 | includeProject(":ui:integration-tests:demos", "integration-tests/demos") |
| Louis Pullen-Freilich | 2358644 | 2020-03-11 18:02:47 +0000 | [diff] [blame] | 50 | includeProject(":ui:integration-tests:demos:common", "integration-tests/demos/common") |
| Louis Pullen-Freilich | a5568e9 | 2020-04-15 21:10:03 +0100 | [diff] [blame] | 51 | includeProject(":ui:integration-tests", "integration-tests") |
| Siyamed Sinir | 881e05e | 2020-04-01 18:29:39 -0700 | [diff] [blame] | 52 | includeProject(":ui:ui-text-android", "ui-text-android") |
| Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 53 | includeProject(":ui:ui-android-view", "ui-android-view") |
| Mihai Popa | eb38a34 | 2019-11-27 13:17:49 +0000 | [diff] [blame] | 54 | includeProject(":ui:ui-android-view:integration-tests:ui-android-view-demos", "ui-android-view/integration-tests/android-view-demos") |
| Louis Pullen-Freilich | feef695c | 2020-03-09 22:05:52 +0000 | [diff] [blame] | 55 | includeProject(":ui:ui-android-view:samples", "ui-android-view/samples") |
| Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 56 | includeProject(":ui:ui-animation", "ui-animation") |
| 57 | includeProject(":ui:ui-animation-core", "ui-animation-core") |
| Louis Pullen-Freilich | feef695c | 2020-03-09 22:05:52 +0000 | [diff] [blame] | 58 | includeProject(":ui:ui-animation-core:samples", "ui-animation-core/samples") |
| Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 59 | includeProject(":ui:ui-animation:integration-tests:ui-animation-demos", "ui-animation/integration-tests/animation-demos") |
| Louis Pullen-Freilich | feef695c | 2020-03-09 22:05:52 +0000 | [diff] [blame] | 60 | includeProject(":ui:ui-animation:samples", "ui-animation/samples") |
| Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 61 | includeProject(":ui:ui-core", "ui-core") |
| George Mount | 54370f1 | 2020-05-06 16:03:20 -0700 | [diff] [blame] | 62 | includeProject(":ui:ui-core:integration-tests:ui-core-demos", "ui-core/integration-tests/ui-core-demos") |
| Louis Pullen-Freilich | feef695c | 2020-03-09 22:05:52 +0000 | [diff] [blame] | 63 | includeProject(":ui:ui-core:samples", "ui-core/samples") |
| Nikolay Igotti | 65fb036 | 2020-04-07 15:03:05 +0300 | [diff] [blame] | 64 | if (startParameter.projectProperties.containsKey('compose.desktop')) { |
| 65 | includeProject(":ui:ui-desktop", "ui-desktop") |
| 66 | includeProject(":ui:ui-desktop:android-emu", "ui-desktop/android-emu") |
| 67 | } |
| Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 68 | includeProject(":ui:ui-foundation", "ui-foundation") |
| Matvei Malkov | 453eda8 | 2019-07-19 18:49:17 +0100 | [diff] [blame] | 69 | includeProject(":ui:ui-foundation:integration-tests:ui-foundation-demos", "ui-foundation/integration-tests/foundation-demos") |
| Louis Pullen-Freilich | feef695c | 2020-03-09 22:05:52 +0000 | [diff] [blame] | 70 | includeProject(":ui:ui-foundation:samples", "ui-foundation/samples") |
| Louis Pullen-Freilich | 54b4c11 | 2019-10-23 19:05:56 +0100 | [diff] [blame] | 71 | includeProject(":ui:ui-internal-lint-checks", "ui-internal-lint-checks") |
| George Mount | 842c8c1 | 2020-01-08 16:03:42 -0800 | [diff] [blame] | 72 | includeProject(":ui:ui-geometry", "ui-geometry") |
| George Mount | c525e36 | 2020-01-10 14:53:39 -0800 | [diff] [blame] | 73 | includeProject(":ui:ui-graphics", "ui-graphics") |
| Nader Jawad | e106a36 | 2020-03-25 18:07:05 -0700 | [diff] [blame] | 74 | includeProject(":ui:ui-graphics:samples", "ui-graphics/samples") |
| Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 75 | includeProject(":ui:ui-layout", "ui-layout") |
| Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 76 | includeProject(":ui:ui-layout:integration-tests:ui-layout-demos", "ui-layout/integration-tests/layout-demos") |
| Louis Pullen-Freilich | feef695c | 2020-03-09 22:05:52 +0000 | [diff] [blame] | 77 | includeProject(":ui:ui-layout:samples", "ui-layout/samples") |
| Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 78 | includeProject(":ui:ui-material", "ui-material") |
| Sam Gilbert | 39594d7 | 2020-03-09 21:46:11 +0000 | [diff] [blame] | 79 | includeProject(":ui:ui-material:integration-tests:ui-material-demos", "ui-material/integration-tests/material-demos") |
| 80 | includeProject(":ui:ui-material:integration-tests:ui-material-studies", "ui-material/integration-tests/material-studies") |
| Louis Pullen-Freilich | feef695c | 2020-03-09 22:05:52 +0000 | [diff] [blame] | 81 | includeProject(":ui:ui-material:samples", "ui-material/samples") |
| 82 | includeProject(":ui:ui-material-icons-core", "ui-material/icons/core") |
| 83 | includeProject(":ui:ui-material-icons-core:samples", "ui-material/icons/core/samples") |
| 84 | includeProject(":ui:ui-material-icons-extended", "ui-material/icons/extended") |
| 85 | includeProject(":ui:ui-material:icons:generator", "ui-material/icons/generator") |
| Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 86 | includeProject(":ui:ui-test", "ui-test") |
| Siyamed Sinir | 754b1c2 | 2020-04-03 11:36:28 -0700 | [diff] [blame] | 87 | includeProject(":ui:ui-test-font", "ui-test-font") |
| Siyamed Sinir | 47937f0 | 2020-04-01 18:35:47 -0700 | [diff] [blame] | 88 | includeProject(":ui:ui-text", "ui-text") |
| haoyu | 823b100 | 2020-04-08 18:25:12 -0700 | [diff] [blame] | 89 | includeProject(":ui:ui-text:integration-tests:ui-text-compose-demos", "ui-text/integration-tests/ui-text-compose-demos") |
| Siyamed Sinir | 82de594 | 2020-04-01 18:21:42 -0700 | [diff] [blame] | 90 | includeProject(":ui:ui-text-core", "ui-text-core") |
| 91 | includeProject(":ui:ui-text-core:integration-tests:ui-text-demos", "ui-text-core/integration-tests/text-demos") |
| 92 | includeProject(":ui:ui-text-core:samples", "ui-text-core/samples") |
| Chuck Jazdzewski | e7725b9 | 2019-06-24 08:51:16 -0700 | [diff] [blame] | 93 | includeProject(":ui:ui-tooling", "ui-tooling") |
| George Mount | 842c8c1 | 2020-01-08 16:03:42 -0800 | [diff] [blame] | 94 | includeProject(":ui:ui-unit", "ui-unit") |
| Louis Pullen-Freilich | feef695c | 2020-03-09 22:05:52 +0000 | [diff] [blame] | 95 | includeProject(":ui:ui-unit:samples", "ui-unit/samples") |
| George Mount | 842c8c1 | 2020-01-08 16:03:42 -0800 | [diff] [blame] | 96 | includeProject(":ui:ui-util", "ui-util") |
| Nader Jawad | 4cfb5de | 2019-06-26 16:24:23 -0700 | [diff] [blame] | 97 | includeProject(":ui:ui-vector", "ui-vector") |
| Andrey Kulikov | 1332daa | 2020-03-09 17:13:32 +0000 | [diff] [blame] | 98 | includeProject(":ui:ui-saved-instance-state", "ui-saved-instance-state") |
| Andrey Kulikov | b4361de | 2020-03-20 14:53:42 +0000 | [diff] [blame] | 99 | includeProject(":ui:ui-saved-instance-state:samples", "ui-saved-instance-state/samples") |
| Andrey Kulikov | 1789d0e | 2020-04-06 11:21:39 +0100 | [diff] [blame] | 100 | includeProject(":ui:ui-livedata", "ui-livedata") |
| 101 | includeProject(":ui:ui-livedata:samples", "ui-livedata/samples") |
| Cătălin Tudor | 9188ab3 | 2019-05-08 16:01:05 +0100 | [diff] [blame] | 102 | includeProject(":test-screenshot", "../test/screenshot") |
| Andrey Kulikov | a76596c | 2020-04-06 11:21:39 +0100 | [diff] [blame] | 103 | includeProject(":ui:ui-rxjava2", "ui-rxjava2") |
| 104 | includeProject(":ui:ui-rxjava2:samples", "ui-rxjava2/samples") |
| Cătălin Tudor | a2ed24e | 2019-07-04 13:50:58 +0100 | [diff] [blame] | 105 | |
| Aurimas Liutikas | aa460b0 | 2019-04-25 16:03:21 -0700 | [diff] [blame] | 106 | ///////////////////////////// |
| 107 | // |
| 108 | // External |
| 109 | // |
| 110 | ///////////////////////////// |
| 111 | |
| 112 | apply(from: "../include-composite-deps.gradle") |
| 113 | |
| 114 | if (!startParameter.projectProperties.containsKey('android.injected.invoked.from.ide')) { |
| 115 | // we don't need it in ide, so we don't configure it there |
| 116 | includeProject(":docs-fake", "../docs-fake") |
| 117 | includeProject(":docs-runner", "../docs-runner") |
| 118 | } |
| Leland Richardson | 0fdc6a4 | 2019-04-30 17:50:54 -0700 | [diff] [blame] | 119 | |
| 120 | // dumb test project that has a test for each size to ensure that at least one test is run |
| 121 | // 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] | 122 | includeProject(":dumb-tests", "../dumb-tests") |
| Aurimas Liutikas | acd7045 | 2019-05-06 18:01:07 -0700 | [diff] [blame] | 123 | |
| Filip Pavlis | 2044790 | 2019-07-01 20:34:25 +0100 | [diff] [blame] | 124 | includeProject(":fakeannotations", "../fakeannotations") |
| Aurimas Liutikas | a639b6c | 2020-03-11 09:44:56 -0700 | [diff] [blame] | 125 | |
| 126 | ///////////////////////////// |
| 127 | // |
| 128 | // Remote build cache set up |
| 129 | // |
| 130 | ///////////////////////////// |
| 131 | |
| 132 | apply from: new File('buildSrc/remoteBuildCache.gradle') |