-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
59 lines (49 loc) · 1.33 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
configure(allprojects) { project ->
group = "libtutor"
apply plugin: "java"
// dependencyManagement {
// resolutionStrategy {
// cacheChangingModulesFor 0, "seconds"
// }
// applyMavenExclusions = false
// generatedPomCustomization {
// enabled = false
// }
// }
configurations.all {
// Check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, "seconds"
}
compileJava {
sourceCompatibility = 1.8 // can be switched to 11 for testing
targetCompatibility = 1.8
options.encoding = "UTF-8"
}
compileTestJava {
sourceCompatibility = 1.8 // can be switched to 11 for testing
targetCompatibility = 1.8
options.encoding = "UTF-8"
options.compilerArgs += "-parameters"
}
// compileKotlin {
// kotlinOptions {
// jvmTarget = "1.8"
// freeCompilerArgs = ["-Xjsr305=strict"]
// }
// }
//
// compileTestKotlin {
// kotlinOptions {
// jvmTarget = "1.8"
// freeCompilerArgs = ["-Xjsr305=strict"]
// }
// }
repositories {
mavenLocal()
}
dependencies {
testCompile("junit:junit:4.12") {
exclude group: "org.hamcrest", module: "hamcrest-core"
}
}
}