aboutsummaryrefslogtreecommitdiff
path: root/include-support-library.gradle
blob: fec80413462062147275bf08c375b7d008eda5d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * Copyright (C) 2017 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// This file enables using Support Library in a Composite Build. More information about Composite
// Builds can be found at https://docs.gradle.org/current/userguide/composite_builds.html .
// This file is a workaround for https://github.com/gradle/gradle/issues/1909 .

// Projects that want to include the build of Support Library should apply this file to their
// settings.gradle . For example, if Support Library is at the file path ~/support-library, then
// to include Support Library in your build, add this line to the bottom of your settings.gradle:
//
//   apply(from:'~/support-library/frameworks/support/include-support-library.gradle')

String buildScriptDir = buildscript.sourceFile.parent

// include any builds required by Support Library
apply(from:new File(buildScriptDir, 'include-composite-deps.gradle'))

// include Support Library itself
includeBuild(buildScriptDir)