blob: 75431ad88d2a812da517011d713f9ca5e47af0b0 [file] [log] [blame]
Aurimas Liutikasaa460b02019-04-25 16:03:21 -07001// 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//
10def 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-Freilichf9515b12019-06-03 19:52:29 +010022includeProject(":annotation:annotation-sampled", "../annotation/annotation-sampled")
Chris Craike2022ae2019-07-24 15:21:39 -070023includeProject(":benchmark:benchmark-common", "../benchmark/common")
Chris Craik22c33922019-07-25 12:33:06 -070024includeProject(":benchmark:benchmark-junit4", "../benchmark/junit4")
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010025includeProject(":compose:compose-compiler", "../compose/compose-compiler")
Chuck Jazdzewski4c1c82f2019-06-18 08:51:59 -070026includeProject(":compose:compose-compiler-hosted", "../compose/compose-compiler-hosted")
27includeProject(":compose:compose-compiler-hosted:integration-tests", "../compose/compose-compiler-hosted/integration-tests")
Chuck Jazdzewski4c1c82f2019-06-18 08:51:59 -070028includeProject(":compose:compose-ide-plugin", "../compose/compose-ide-plugin")
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010029includeProject(":compose:compose-runtime", "../compose/compose-runtime")
Chris Craik70ef6c62019-07-15 11:20:00 -070030includeProject(":compose:compose-runtime-benchmark", "../compose/compose-runtime/compose-runtime-benchmark")
31includeProject(":ui:integration-tests-benchmark", "integration-tests/benchmark")
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010032includeProject(":ui:integration-tests:demos", "integration-tests/demos")
33includeProject(":ui:integration-tests:test", "integration-tests/test")
34includeProject(":ui:ui-android-text", "ui-android-text")
35includeProject(":ui:ui-android-view", "ui-android-view")
36includeProject(":ui:ui-android-view-non-ir", "ui-android-view-non-ir")
37includeProject(":ui:ui-animation", "ui-animation")
38includeProject(":ui:ui-animation-core", "ui-animation-core")
39includeProject(":ui:ui-animation:integration-tests:ui-animation-demos", "ui-animation/integration-tests/animation-demos")
40includeProject(":ui:ui-core", "ui-core")
41includeProject(":ui:ui-foundation", "ui-foundation")
Matvei Malkov54249372019-07-12 16:53:00 +010042includeProject(":ui:ui-foundation:integration-tests:samples", "ui-foundation/integration-tests/samples")
Matvei Malkov453eda82019-07-19 18:49:17 +010043includeProject(":ui:ui-foundation:integration-tests:ui-foundation-demos", "ui-foundation/integration-tests/foundation-demos")
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010044includeProject(":ui:ui-framework", "ui-framework")
45includeProject(":ui:ui-framework:integration-tests:ui-framework-demos", "ui-framework/integration-tests/framework-demos")
Andrey Kulikovaa4584b2019-07-03 17:00:09 +010046includeProject(":ui:ui-framework:integration-tests:samples", "ui-framework/integration-tests/samples")
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010047includeProject(":ui:ui-layout", "ui-layout")
48includeProject(":ui:ui-layout:integration-tests:samples", "ui-layout/integration-tests/samples")
49includeProject(":ui:ui-layout:integration-tests:ui-layout-demos", "ui-layout/integration-tests/layout-demos")
50includeProject(":ui:ui-material", "ui-material")
51includeProject(":ui:ui-material:integration-tests:samples", "ui-material/integration-tests/samples")
52includeProject(":ui:ui-material:integration-tests:ui-material-demos", "ui-material/integration-tests/material-demos")
53includeProject(":ui:ui-material:integration-tests:ui-material-studies", "ui-material/integration-tests/material-studies")
54includeProject(":ui:ui-platform", "ui-platform")
55includeProject(":ui:ui-test", "ui-test")
56includeProject(":ui:ui-text", "ui-text")
57includeProject(":ui:ui-text:integration-tests:ui-text-demos", "ui-text/integration-tests/text-demos")
Aurimas Liutikasaa460b02019-04-25 16:03:21 -070058
59/////////////////////////////
60//
61// External
62//
63/////////////////////////////
64
65apply(from: "../include-composite-deps.gradle")
66
67if (!startParameter.projectProperties.containsKey('android.injected.invoked.from.ide')) {
68 // we don't need it in ide, so we don't configure it there
69 includeProject(":docs-fake", "../docs-fake")
70 includeProject(":docs-runner", "../docs-runner")
71}
Leland Richardson0fdc6a42019-04-30 17:50:54 -070072
73// dumb test project that has a test for each size to ensure that at least one test is run
74// for each size and test runner is happy when there is nothing to test.
Louis Pullen-Freilichaea125d2019-05-01 14:56:11 +010075includeProject(":dumb-tests", "../dumb-tests")
Aurimas Liutikasacd70452019-05-06 18:01:07 -070076
Filip Pavlis20447902019-07-01 20:34:25 +010077includeProject(":fakeannotations", "../fakeannotations")