forked from rollbar/rollbar-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
49 lines (40 loc) · 1.28 KB
/
build.gradle
File metadata and controls
49 lines (40 loc) · 1.28 KB
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
String CI = "${System.env.CI}"
if (CI != "true") {
apply from: "$rootDir/gradle/release.gradle"
}
subprojects {
if (!it.name.contains('android')) {
apply plugin: 'java'
apply from: "$rootDir/gradle/quality.gradle"
repositories {
mavenCentral()
}
jar {
manifest {
attributes(
"Implementation-Title": project.name,
"Implementation-Version": VERSION_NAME
)
}
}
}
if (!it.name.contains('android')) {
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.10.0'
}
compileJava {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
options.bootstrapClasspath = files("${System.env.JDK7_HOME}/jre/lib/rt.jar")
}
compileTestJava {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.4'
}