forked from PaulWoitaschek/Voice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·52 lines (45 loc) · 1.56 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
apply plugin: 'com.github.ben-manes.versions'
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 "com.github.ben-manes:gradle-versions-plugin:$versions.gradleVersionsPlugin"
classpath "io.fabric.tools:gradle:$versions.fabric"
}
}
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.supportV13
force "com.squareup.okio:okio:1.13.0"
force libraries.supportAnnotations
}
}
}
apply from: "predexDisabler.gradle"
task updateTranslations(type: Exec) {
executable 'sh'
args "-c", "tx pull -f --minimum-perc=5"
}