forked from WeizhouZhang/homework-08-ut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
47 lines (41 loc) · 1.58 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
/*
* This build file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java example.Library project to get you started.
* For more details take a look at the Java Libraries chapter in the Gradle
* user guide available at https://docs.gradle.org/3.4.1/userguide/java_library_plugin.html
*/
// Apply the java-library plugin to add support for Java example.Library
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'jacoco'
sourceCompatibility = 1.8
targetCompatibility = 1.8
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination "${buildDir}/jacocoHtml"
}
}
check.dependsOn jacocoTestReport
// In this section you declare where to find the dependencies of your project
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
mavenLocal()
jcenter()
maven { url 'http://repo.spring.io/plugins-release' }
maven { url 'http://repo.spring.io/milestone' }
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
// This dependency is exported to consumers, that is to say found on their compile classpath.
compile 'com.google.inject:guice:4.1.0'
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
testCompile('org.junit.jupiter:junit-jupiter-api:5.0.0')
testRuntime('org.junit.jupiter:junit-jupiter-engine:5.0.0')
// Use JUnit test framework
testCompile 'org.hamcrest:hamcrest-core:1.3'
testCompile "org.mockito:mockito-core:2.19.0"
}