-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
53 lines (41 loc) · 1.17 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
plugins {
id "com.github.ben-manes.versions" version "0.14.0"
id "com.github.hierynomus.license" version "0.11.0"
}
apply plugin: 'java'
version = '0.0.1-SNAPSHOT'
def fileEncoding = 'UTF-8'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
}
def googleGuavaVersion = '21.0'
def rxJavaVersion = '1.2.7'
dependencies {
compile "com.google.guava:guava:${googleGuavaVersion}"
compile "io.reactivex:rxjava:${rxJavaVersion}"
}
test {
systemProperty 'file.encoding', fileEncoding
}
tasks.withType(JavaCompile) {
options.encoding = fileEncoding
}
// http://forums.gradle.org/gradle/topics/set_maxparallelforks_to_number_of_cores_on_the_current_machine
tasks.withType(Test) {
maxParallelForks = Runtime.getRuntime().availableProcessors()
}
jar {
manifest {
attributes 'Implementation-Title': project.name,
'Built-By': System.getProperty('user.name'),
'Built-Date': new Date(),
'Built-JDK': System.getProperty('java.version'),
'Built-Gradle': gradle.gradleVersion
}
}
license {
header = rootProject.file('config/HEADER_apache2.txt')
strictCheck = true
}