forked from BoltsFramework/Bolts-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
56 lines (49 loc) · 1.42 KB
/
build.gradle
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the/
// LICENSE file in the root directory of this source tree.
import com.android.build.gradle.LibraryPlugin
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.1'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.1x'
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}
ext {
compileSdkVersion = 28
buildToolsVersion = "28.0.3"
minSdkVersion = 14
targetSdkVersion = 28
}
task aggregateJavadocs(type: Javadoc) {
destinationDir = file("$buildDir/docs/javadoc")
}
subprojects {
afterEvaluate {
if (plugins.hasPlugin(JavaPlugin)) {
rootProject.tasks.aggregateJavadocs {
source += javadoc.source
classpath += files(javadoc.classpath)
}
}
if (plugins.hasPlugin(LibraryPlugin)) {
rootProject.tasks.aggregateJavadocs {
source += files(android.sourceSets.main.java.srcDirs)
classpath += files(project.files(android.getBootClasspath().join(File.pathSeparator)))
}
}
}
}