-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (59 loc) · 1.47 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
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "net.ltgt.gradle:gradle-apt-plugin:0.8"
}
}
allprojects {
group 'com.bdl.auto'
version '1.0-SNAPSHOT'
}
subprojects {
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'net.ltgt.apt'
sourceCompatibility = 1.7
targetCompatibility = 1.7
ext {
JUNIT_VERSION = '4.12'
GOOGLE_TRUTH_VERSION = '0.32'
}
dependencies {
compile 'com.google.code.findbugs:jsr305:latest.release'
compile 'com.google.guava:guava:19.0'
compileOnly 'com.google.auto.value:auto-value:1.4.1'
testCompile "com.google.truth:truth:${GOOGLE_TRUTH_VERSION}"
testCompile "junit:junit:${JUNIT_VERSION}"
testCompile 'com.google.testing.compile:compile-testing:0.5'
testCompileOnly 'com.google.auto.value:auto-value:1.4.1'
apt 'com.google.auto.value:auto-value:1.4.1'
testApt 'com.google.auto.value:auto-value:1.4.1'
testApt 'com.google.guava:guava:19.0'
}
javadoc {
failOnError false
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
}