-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
60 lines (48 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
58
59
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
mavenLocal()
maven {
url 'https://maven.google.com/'
name 'Google'
}
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url "https://repo.maven.apache.org/maven2" }
}
dependencies {
classpath "com.android.tools.build:gradle:${project.property('android-plugin.version')}"
}
}
// Set up the spotbugs plugin so we can apply it in a quality pass if needed
plugins {
id 'com.github.spotbugs' version '5.0.6' apply false
}
allprojects {
// NOTE: project.group and project.version must be defined before including
// maven-support.gradle since it uses these values...
project.group = ( project.hasProperty('pom.groupId')
? project.property('pom.groupId') : "" )
project.version =
( project.hasProperty('pom.version') ? project.property('pom.version') : "1.0" )
// forces all changing dependencies (i.e. SNAPSHOTs) to automagicially download
// (thanks, @BillBarnhill!)
configurations.all {
resolutionStrategy {
cacheChangingModulesFor 0, 'seconds'
}
}
repositories {
mavenCentral()
mavenLocal()
maven {
url 'https://maven.google.com/'
name 'Google'
}
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url "https://repo.maven.apache.org/maven2" }
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
}