-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
31 lines (29 loc) · 990 Bytes
/
build.gradle.kts
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
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
gradle.startParameter.excludedTaskNames.add("lint")
subprojects {
repositories {
mavenCentral()
google()
maven(url = "https://jitpack.io")
if (!optionalStringProperty("mapboxPrivate").isNullOrBlank()) {
maven(url = "https://api.mapbox.com/downloads/v2/releases/maven") {
authentication {
create<BasicAuthentication>("basic")
}
credentials.username = "mapbox"
credentials.password = stringProperty("mapboxPrivate", "")
}
}
mavenLocal()
}
tasks.withType(Test::class) {
testLogging.exceptionFormat = TestExceptionFormat.FULL
}
afterEvaluate {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KaptGenerateStubs> {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
}
}
}