forked from JakeWharton/butterknife
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
88 lines (75 loc) · 2.54 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
subprojects { project ->
group = GROUP
version = VERSION_NAME
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
if (!project.name.equals('butterknife-gradle-plugin')) {
apply plugin: 'checkstyle'
task checkstyle(type: Checkstyle) {
configFile rootProject.file('checkstyle.xml')
source 'src/main/java'
ignoreFailures false
showViolations true
include '**/*.java'
classpath = files()
}
afterEvaluate {
if (project.tasks.findByName('check')) {
check.dependsOn('checkstyle')
}
}
}
buildscript {
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'gradle.plugin.com.kageiit:lintrules:1.1.2'
}
}
}
ext {
minSdkVersion = 9
targetSdkVersion = 25
compileSdkVersion = 25
buildToolsVersion = '25.0.2'
sourceCompatibilityVersion = JavaVersion.VERSION_1_7
targetCompatibilityVersion = JavaVersion.VERSION_1_7
}
def androidToolsVersion = '25.2.0'
def supportLibraryVersion = '25.1.0'
def butterknifeLatestReleaseVersion = '8.4.0'
ext.deps = [
// Android
android: 'com.google.android:android:4.1.1.4',
supportCompat: "com.android.support:support-compat:$supportLibraryVersion",
supportAnnotations: "com.android.support:support-annotations:$supportLibraryVersion",
supportTestRunner: 'com.android.support.test:runner:0.5',
androidGradle: 'com.android.tools.build:gradle:2.2.0',
lint: "com.android.tools.lint:lint:$androidToolsVersion",
lintApi: "com.android.tools.lint:lint-api:$androidToolsVersion",
lintChecks: "com.android.tools.lint:lint-checks:$androidToolsVersion",
lintTests: "com.android.tools.lint:lint-tests:$androidToolsVersion",
// Square
javapoet: 'com.squareup:javapoet:1.8.0',
// Third Party
javaparser: 'com.github.javaparser:javaparser-core:2.4.0',
// Test dependencies
junit: 'junit:junit:4.12',
truth: 'com.google.truth:truth:0.28',
robolectric: 'org.robolectric:robolectric:3.1.2',
openglApi: 'org.khronos:opengl-api:gl1.1-android-2.1_r1',
compiletesting: 'com.google.testing.compile:compile-testing:0.9',
autoservice: 'com.google.auto.service:auto-service:1.0-rc2',
autocommon: 'com.google.auto:auto-common:0.6',
butterknife: "com.jakewharton:butterknife:$butterknifeLatestReleaseVersion",
butterknifeCompiler: "com.jakewharton:butterknife-compiler:$butterknifeLatestReleaseVersion"
]