This repository has been archived by the owner on Sep 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
83 lines (70 loc) · 1.8 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
ext {
// Publishing
sporkVersion = '4.0.0'
sporkReleasing = false
sporkUserOrg = 'bytewelder'
sporkWebsite = 'https://github.com/ByteWelder/Spork'
sporkGroupId = 'com.bytewelder.spork'
sporkRepoName = sporkReleasing ? 'maven-release' : 'maven-snapshot'
sporkName = 'Poetry'
sporkIssueTracker = 'https://github.com/ByteWelder/Spork/issues'
sporkRepository = 'https://github.com/ByteWelder/Spork.git'
sporkAutoPublish = !sporkReleasing
sporkPublishIsDryRun = false
// Dependencies
junitVersion = '4.12'
mockitoVersion = '2.7.14'
findBugsVersion = '3.0.1'
// Android settings and dependencies
androidBuildToolsVersion = '25.0.3' // don't forget to update .travis.yml too
androidCompileSdkVersion = 25
androidMinSdkVersion = 16
androidTargetSdkVersion = 25
androidSupportLibraryVersion = '25.3.1'
androidSupportEspressoVersion = '2.2.2'
androidSupportTestRunnerVersion = '0.5'
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.2'
classpath 'org.jacoco:org.jacoco.core:0.7.7.201606060606'
classpath 'com.novoda:bintray-release:0.4.0'
}
}
subprojects {
repositories {
mavenLocal()
jcenter()
}
apply plugin: 'jacoco'
apply plugin: 'checkstyle'
apply plugin: 'findbugs'
checkstyle {
configFile = new File(rootDir, 'config/checkstyle.xml')
}
findbugs {
effort = 'default'
reportLevel = 'medium'
excludeFilter = new File(rootDir, 'config/findbugs-excludes.xml')
}
group = sporkGroupId
version = sporkVersion
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << '-Xlint:unchecked' << '-Xlint:deprecation'
}
}
tasks.withType(FindBugs) {
reports {
xml.enabled false
html.enabled true
}
}
tasks.withType(JavaCompile) {
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
}
}