forked from BruceEckel/OnJava8-Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjava.gradle
More file actions
39 lines (33 loc) · 742 Bytes
/
java.gradle
File metadata and controls
39 lines (33 loc) · 742 Bytes
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
apply plugin: 'java'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
compileJava {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
sourceSets {
main {
java {
srcDir projectDir
exclude "tests/**"
}
resources {
srcDir projectDir
include '*.xml'
}
}
test {
java {
srcDir file("tests")
}
}
}
repositories {
jcenter()
}
dependencies {
// Logging:
implementation 'org.slf4j:slf4j-api:1.7.21'
implementation 'ch.qos.logback:logback-classic:1.1.7'
// You can also use the JDK's built-in logging as the back end:
// compile group: 'org.slf4j:slf4j-jdk14:1.7.21'
}