forked from JakeWharton/butterknife
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
101 lines (89 loc) · 2.87 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
89
90
91
92
93
94
95
96
97
98
99
100
101
apply plugin: 'com.github.ben-manes.versions'
buildscript {
ext.versions = [
'minSdk': 14,
'compileSdk': 26,
'buildTools': '26.0.1',
'supportLibrary': '26.0.0',
'androidPlugin': '3.0.0-alpha9',
'androidTools': '26.0.0-alpha9',
'kotlin': '1.1.3-2',
'release': '8.7.0',
]
ext.deps = [
android: [
'runtime': 'com.google.android:android:4.1.1.4',
'gradlePlugin': "com.android.tools.build:gradle:${versions.androidPlugin}",
],
'support': [
'compat': "com.android.support:support-compat:${versions.supportLibrary}",
'annotations': "com.android.support:support-annotations:${versions.supportLibrary}",
'test': [
'runner': 'com.android.support.test:runner:1.0.0',
],
],
'lint': [
'core': "com.android.tools.lint:lint:${versions.androidTools}",
'api': "com.android.tools.lint:lint-api:${versions.androidTools}",
'checks': "com.android.tools.lint:lint-checks:${versions.androidTools}",
'tests': "com.android.tools.lint:lint-tests:${versions.androidTools}",
],
javapoet: 'com.squareup:javapoet:1.9.0',
javaparser: 'com.github.javaparser:javaparser-core:3.3.0',
junit: 'junit:junit:4.12',
truth: 'com.google.truth:truth:0.34',
robolectric: 'org.robolectric:robolectric:3.4',
compiletesting: 'com.google.testing.compile:compile-testing:0.11',
'auto': [
'service': 'com.google.auto.service:auto-service:1.0-rc3',
'common': 'com.google.auto:auto-common:0.8',
],
'release': [
'runtime': "com.jakewharton:butterknife:${versions.release}",
'compiler': "com.jakewharton:butterknife-compiler:${versions.release}"
],
'kotlin': [
'stdLibJre8': "org.jetbrains.kotlin:kotlin-stdlib-jre8:${versions.kotlin}",
]
]
repositories {
mavenCentral()
google()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath deps.android.gradlePlugin
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath 'com.github.ben-manes:gradle-versions-plugin:0.15.0'
classpath 'gradle.plugin.com.kageiit:lintrules:1.1.3'
}
}
subprojects { project ->
group = GROUP
version = VERSION_NAME
repositories {
mavenCentral()
google()
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')
}
}
}
}