-
Notifications
You must be signed in to change notification settings - Fork 6.1k
/
Copy pathbuild.gradle
103 lines (90 loc) · 3.01 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
apply plugin: 'com.android.library'
if (!hasProperty('DISABLE_ERROR_PRONE')) {
apply plugin: "net.ltgt.errorprone"
}
tasks.withType(JavaCompile) {
options.fork = true
}
dependencies {
api project(':third_party:gif_decoder')
api project(':third_party:disklrucache')
api project(':annotation')
api libs.androidx.fragment
api libs.androidx.vectordrawable
api libs.androidx.exifinterface
api libs.androidx.tracing
compileOnly libs.androidx.appcompat
if (project.plugins.hasPlugin('net.ltgt.errorprone')) {
errorprone libs.errorprone.core
}
testImplementation libs.androidx.appcompat
testImplementation project(':testutil')
testImplementation libs.guava.testlib
testImplementation libs.truth
testImplementation libs.junit
testImplementation libs.mockito
testImplementation libs.robolectric
testImplementation libs.mockwebserver
testImplementation libs.androidx.test.core
testImplementation libs.androidx.junit
testImplementation libs.androidx.test.runner
}
if (project.plugins.hasPlugin('net.ltgt.errorprone')) {
tasks.withType(JavaCompile) {
options.errorprone.disable(
// It's often useful to track individual objects when debugging
// object pooling.
"ObjectToString",
// Doesn't apply when we can't use lambadas.
"UnnecessaryAnonymousClass",
// TODO(judds): Fix these and re-enable this check
"BadImport",
"UnescapedEntity",
"MissingSummary",
"InlineMeSuggester",
"CanIgnoreReturnValueSuggester",
"TypeNameShadowing",
"UndefinedEquals",
"UnnecessaryParentheses",
"UnusedVariable",
"EqualsGetClass",
"LockNotBeforeTry")
}
}
android {
namespace 'com.bumptech.glide'
compileSdkVersion libs.versions.compile.sdk.version.get()
defaultConfig {
minSdk libs.versions.min.sdk.version.get() as int
targetSdk libs.versions.target.sdk.version.get() as int
versionName VERSION_NAME as String
consumerProguardFiles 'proguard-rules.txt'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
// Change the name to make it a little more obvious where the main library
// documentation has gone. Using a capital letter happens to make this first in
// the list too...
afterEvaluate {
dokkaHtmlPartial.configure {
dokkaSourceSets {
named("main") {
moduleName.set("Glide")
}
}
}
}
check.dependsOn(':library:pmd:pmd')
check.dependsOn(':library:test:check')
// Used in pmd and findbugs subprojects.
@SuppressWarnings("GroovyUnusedDeclaration")
def classPathForQuality() {
return files(
android.bootClasspath,
project.android.libraryVariants.collect { it.javaCompile.classpath }
)
}
apply from: "${rootProject.projectDir}/scripts/upload.gradle"