-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
53 lines (45 loc) · 1014 Bytes
/
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 'checkstyle'
id 'java'
id 'com.github.kt3k.coveralls' version '2.8.2'
id 'jacoco'
}
sourceCompatibility = 1.8
version = '1.0'
jar {
manifest {
attributes 'Implementation-Title': 'Java Sorting Algorithms by @marioluan',
'Implementation-Version': version
}
}
uploadArchives {
repositories {
flatDir {
dirs 'repos'
}
}
}
repositories {
jcenter()
mavenCentral()
}
dependencies {
compile 'edu.princeton.cs:algs4:1.0.2'
compile group: 'org.mockito', name: 'mockito-all', version: '1.10.19'
testCompile 'com.greghaskins:spectrum:1.2.0'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
// plugins' settings
// usually takes ages to run
checkstyle {
checkstyleTest.enabled = false
}
jacocoTestReport {
reports {
// codecov requires it
xml.enabled true
// useful to see results locally
html.enabled true
}
}
check.dependsOn jacocoTestReport