forked from PaulWoitaschek/Voice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·57 lines (49 loc) · 1.67 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
buildscript {
apply from: 'dependencies.gradle'
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath "com.android.tools.build:gradle:$versions.androidPlugin"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
classpath "io.fabric.tools:gradle:$versions.fabric"
}
}
plugins {
id 'com.gradle.build-scan' version '1.9.1'
id 'com.github.ben-manes.versions' version '0.15.0'
}
buildScan { licenseAgreementUrl = 'https://gradle.com/terms-of-service'; licenseAgree = 'yes' }
allprojects {
repositories {
jcenter()
maven { url "https://maven.google.com" }
mavenCentral()
maven { url 'https://maven.fabric.io/public' }
maven { url "https://jitpack.io" }
}
dependencyUpdates.resolutionStrategy = {
componentSelection { rules ->
rules.all { ComponentSelection selection ->
def candidate = selection.candidate
if (candidate.group == 'org.assertj' && !candidate.version.startsWith("1")) selection.reject("Only version 1 of assertJ supported")
if (['rc', 'beta', 'alpha'].any { forbidden -> candidate.version.contains(forbidden) }) selection.reject("blacklisted")
if (candidate.group == 'javax.annotation' && candidate.version == '1.0-20050927.133100') selection.reject()
}
}
}
configurations.all {
resolutionStrategy {
force libraries.support.v13
force "com.squareup.okio:okio:1.13.0"
force libraries.support.annotations
force libraries.kotlinStdLib
}
}
}
apply from: "predexDisabler.gradle"
task updateTranslations(type: Exec) {
executable 'sh'
args "-c", "tx pull -af --minimum-perc=5"
}