This repository has been archived by the owner on Apr 22, 2022. It is now read-only.
forked from soundcloud/lightcycle
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
82 lines (70 loc) · 1.88 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
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:2.2.0'
}
}
task wrapper(type: Wrapper) {
description 'Creates the gradle wrapper.'
gradleVersion '2.5'
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
}
}
ext {
minSdkVersion = 8
targetSdkVersion = 23
compileSdkVersion = 23
buildToolsVersion = '23.0.1'
sourceCompatibilityVersion = JavaVersion.VERSION_1_7
targetCompatibilityVersion = JavaVersion.VERSION_1_7
}
ext.deps = [
// Android
android : 'com.google.android:android:4.1.1.4',
support_v4 : 'com.google.android:support-v4:r7',
appcompat_v7 : 'com.android.support:appcompat-v7:23.2.0',
support_annotations : 'com.android.support:support-annotations:23.2.0',
// Processor
javawriter : 'com.squareup:javawriter:2.1.2',
// Test dependencies
junit : 'junit:junit:4.12',
mockito : 'org.mockito:mockito-all:1.10.19',
compiletesting : 'com.google.testing.compile:compile-testing:0.7',
]
// Static analysis
subprojects { project ->
apply plugin: 'pmd'
apply plugin: 'findbugs'
task pmd(type: Pmd) {
description 'Finds common programming flaws throw static analysis of code.'
ignoreFailures false
}
findbugs {
ignoreFailures = false
toolVersion = "3.0.0"
}
tasks.withType(FindBugs) {
reports {
xml.enabled = false
html.enabled = true
}
}
}
// configure Java projects
[":lightcycle-api", ":lightcycle-processor"].each { name ->
project(name) {
apply plugin: 'provided-base'
apply plugin: 'java'
sourceCompatibility = rootProject.ext.sourceCompatibilityVersion
targetCompatibility = rootProject.ext.targetCompatibilityVersion
}
}