-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathbuild.gradle
45 lines (37 loc) · 1.2 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
/*
* Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
ext.tasks_version = '16.0.1'
def artifactType = Attribute.of("artifactType", String)
def unpackedAar = Attribute.of("unpackedAar", Boolean)
configurations.all {
afterEvaluate {
if (canBeResolved) {
attributes.attribute(unpackedAar, true) // request all AARs to be unpacked
}
}
}
dependencies {
attributesSchema {
attribute(unpackedAar)
}
artifactTypes {
aar {
attributes.attribute(unpackedAar, false)
}
}
registerTransform(UnpackAar) {
from.attribute(unpackedAar, false).attribute(artifactType, "aar")
to.attribute(unpackedAar, true).attribute(artifactType, "jar")
}
api("com.google.android.gms:play-services-tasks:$tasks_version") {
exclude group: 'com.android.support'
}
}
tasks.withType(dokka.getClass()) {
externalDocumentationLink {
url = new URL("https://developers.google.com/android/reference/")
// This is workaround for missing package list in Google API
packageListUrl = projectDir.toPath().resolve("package.list").toUri().toURL()
}
}