blob: 303e4fac5aa829fd0529834a958197a9a465c83a [file] [log] [blame]
Yigit Boyar2eb51992016-12-13 15:00:07 -08001/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17// If you change this file, you should also change the settings gradle inside
18// the sub project.
Yigit Boyar34e50312017-01-14 14:06:13 -080019
Yigit Boyar450ed382017-03-02 09:48:25 -080020def inAppToolkitProject = rootProject.name == "app-toolkit"
21def supportRoot
22if (inAppToolkitProject) {
23 supportRoot = new File(rootProject.projectDir, "..").getCanonicalFile()
24} else {
25 supportRoot = rootProject.projectDir
26}
Yigit Boyar34e50312017-01-14 14:06:13 -080027
Yigit Boyar450ed382017-03-02 09:48:25 -080028println "support root:${supportRoot}"
29
Yigit Boyar8205ce12017-07-09 23:07:05 -070030include ':arch:runtime'
31project(':arch:runtime').projectDir = new File(supportRoot, "app-toolkit/runtime")
32
33include ':arch:common'
34project(':arch:common').projectDir = new File(supportRoot, "app-toolkit/common")
Yigit Boyar450ed382017-03-02 09:48:25 -080035
Chris Craik9fd8e612017-06-23 14:07:04 -070036include ':paging:common'
37project(':paging:common').projectDir = new File(supportRoot, "paging/common")
38
39include ":paging:runtime"
40project(':paging:runtime').projectDir = new File(supportRoot, "paging/runtime")
41
42include ':paging:integration-tests:testapp'
43project(':paging:integration-tests:testapp').projectDir = new File(supportRoot, "paging/integration-tests/testapp")
44
Yigit Boyar64db0cc2017-04-17 13:18:56 -070045include ':arch:core-testing'
46project(':arch:core-testing').projectDir = new File(supportRoot, "app-toolkit/core-testing")
Sergey Vasilinets459caad2017-03-01 11:11:34 -080047
Yigit Boyar2eb51992016-12-13 15:00:07 -080048include ':lifecycle:extensions'
Yigit Boyar450ed382017-03-02 09:48:25 -080049project(':lifecycle:extensions').projectDir = new File(supportRoot, "lifecycle/extensions")
Yigit Boyar2eb51992016-12-13 15:00:07 -080050
Jason Neufeld5349f0e2017-02-17 11:17:55 -080051include ':lifecycle:reactivestreams'
Yigit Boyar450ed382017-03-02 09:48:25 -080052project(':lifecycle:reactivestreams').projectDir = new File(supportRoot, "lifecycle/reactivestreams")
Jason Neufeld5349f0e2017-02-17 11:17:55 -080053
Yigit Boyar2eb51992016-12-13 15:00:07 -080054include ':lifecycle:runtime'
Yigit Boyar450ed382017-03-02 09:48:25 -080055project(':lifecycle:runtime').projectDir = new File(supportRoot, "lifecycle/runtime")
Yigit Boyar2eb51992016-12-13 15:00:07 -080056
57include ':lifecycle:common'
Yigit Boyar450ed382017-03-02 09:48:25 -080058project(':lifecycle:common').projectDir = new File(supportRoot, "lifecycle/common")
Yigit Boyar2eb51992016-12-13 15:00:07 -080059
Sergey Vasilinets243ca802017-09-01 18:16:14 -070060include ':lifecycle:common-java8'
61project(':lifecycle:common-java8').projectDir = new File(supportRoot, "lifecycle/common-java8")
62
Yigit Boyar2eb51992016-12-13 15:00:07 -080063include ':lifecycle:compiler'
Yigit Boyar450ed382017-03-02 09:48:25 -080064project(':lifecycle:compiler').projectDir = new File(supportRoot, "lifecycle/compiler")
Yigit Boyar2eb51992016-12-13 15:00:07 -080065
Ian Lake4fa94442017-03-06 14:12:53 -080066include ':lifecycle:integration-tests:testapp'
67project(':lifecycle:integration-tests:testapp').projectDir = new File(supportRoot, "lifecycle/integration-tests/testapp")
Yigit Boyar2eb51992016-12-13 15:00:07 -080068
69include ':room:common'
Yigit Boyar450ed382017-03-02 09:48:25 -080070project(':room:common').projectDir = new File(supportRoot, "room/common")
Yigit Boyar2eb51992016-12-13 15:00:07 -080071
72include ':room:runtime'
Yigit Boyar450ed382017-03-02 09:48:25 -080073project(':room:runtime').projectDir = new File(supportRoot, "room/runtime")
Yigit Boyar2eb51992016-12-13 15:00:07 -080074
75include ':room:compiler'
Yigit Boyar450ed382017-03-02 09:48:25 -080076project(':room:compiler').projectDir = new File(supportRoot, "room/compiler")
Yigit Boyar2eb51992016-12-13 15:00:07 -080077
Yigit Boyara64756a2017-03-20 17:26:17 -070078include ':room:migration'
79project(':room:migration').projectDir = new File(supportRoot, "room/migration")
80
Yigit Boyar8fe76242017-09-18 09:36:51 -070081include ':persistence:db'
82project(':persistence:db').projectDir = new File(supportRoot, "persistence/db")
Yigit Boyar2eb51992016-12-13 15:00:07 -080083
Yigit Boyar8fe76242017-09-18 09:36:51 -070084include ":persistence:db-framework"
85project(':persistence:db-framework').projectDir = new File(supportRoot, "persistence/db-framework")
Yigit Boyar2eb51992016-12-13 15:00:07 -080086
Yigit Boyara64756a2017-03-20 17:26:17 -070087include ":room:testing"
88project(':room:testing').projectDir = new File(supportRoot, "room/testing")
89
Yigit Boyar3c592c42017-04-04 14:53:04 -070090include ":room:rxjava2"
91project(':room:rxjava2').projectDir = new File(supportRoot, "room/rxjava2")
92
Yigit Boyar2eb51992016-12-13 15:00:07 -080093include ':room:integration-tests:testapp'
Yigit Boyar450ed382017-03-02 09:48:25 -080094project(':room:integration-tests:testapp').projectDir = new File(supportRoot, "room/integration-tests/testapp")
95
Florina Muntenescu34f575b2017-07-17 10:38:50 +010096include ':room:integration-tests:kotlintestapp'
97project(':room:integration-tests:kotlintestapp').projectDir = new File(supportRoot, "room/integration-tests/kotlintestapp")
98
Yigit Boyar450ed382017-03-02 09:48:25 -080099/////////////////////////////
100//
Sergey Vasilinetse69e4702017-02-10 02:26:10 -0800101// External
102//
103/////////////////////////////
Yigit Boyar450ed382017-03-02 09:48:25 -0800104if (inAppToolkitProject) {
105 File externalRoot = new File(supportRoot, '../../external')
Sergey Vasilinetse69e4702017-02-10 02:26:10 -0800106
Yigit Boyar450ed382017-03-02 09:48:25 -0800107 include ':doclava'
108 project(':doclava').projectDir = new File(externalRoot, 'doclava')
Sergey Vasilinetse69e4702017-02-10 02:26:10 -0800109
Yigit Boyar450ed382017-03-02 09:48:25 -0800110 include ':jdiff'
111 project(':jdiff').projectDir = new File(externalRoot, 'jdiff')
112}