This repository has been archived by the owner on Dec 4, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
65 lines (60 loc) · 1.72 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
57
58
59
60
61
62
63
64
65
/*
* Copyright © 2019 The Android Password Authors. All Rights Reserved.
* SPDX-License-Identifier: GPL-3.0-Only
*/
buildscript {
apply from: './dependencies.gradle'
repositories {
google()
jcenter()
}
dependencies {
classpath deps.gradle_plugin.android
classpath deps.gradle_plugin.binary_compatibility_validator
classpath deps.gradle_plugin.kotlin
}
}
apply plugin: 'binary-compatibility-validator'
apiValidation {
ignoredProjects += ["sample"]
}
subprojects {
apply from: rootProject.file('dependencies.gradle')
repositories {
google()
jcenter()
}
if (it.name == 'sample') {
apply plugin: 'com.android.application'
} else {
apply plugin: 'com.android.library'
}
android {
compileSdkVersion versions.compileSdk
defaultConfig {
minSdkVersion versions.minSdk
targetSdkVersion versions.targetSdk
versionCode versions.versionCode
versionName versions.versionName
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
sourceSets.main.java.srcDirs 'src/main/kotlin'
}
tasks.withType(JavaCompile) {
options.compilerArgs << '-Xlint:unchecked'
options.deprecation = true
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
}
}
}
tasks.wrapper {
gradleVersion = "6.7"
distributionType = Wrapper.DistributionType.ALL
distributionSha256Sum = "0080de8491f0918e4f529a6db6820fa0b9e818ee2386117f4394f95feb1d5583"
}