-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
60 lines (50 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
60
buildscript {
repositories {
mavenCentral()
// The next repo is only needed while using SNAPSHOT versions
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
dependencies {
classpath "net.saliman:gradle-cobertura-plugin:2.4.0"
}
}
plugins {
id 'net.saliman.cobertura' version '2.4.0'
id "info.solidsoft.pitest" version '1.1.11'
id 'com.github.kt3k.coveralls' version '2.8.1'
}
pitest {
timestampedReports = false
outputFormats = ['XML']
}
cobertura.coverageFormats = ['html', 'xml'] // coveralls plugin depends on xml format report
group 'org.editorconfig'
version '1.0-SNAPSHOT'
apply plugin: 'java'
sourceCompatibility = 1.7
version = 0.1
repositories {
mavenCentral()
}
dependencies {
testRuntime "org.slf4j:slf4j-log4j12:1.7.24"
testRuntime "log4j:log4j:1.2.17"
compile 'org.ini4j:ini4j:0.5.4'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
jar {
manifest {
attributes 'Implementation-Version': version
}
}
void prepare() {
File f = new File(".git/hooks/pre-commit")
if (!f.exists()) {
println "Linking pre-commit git hook"
java.nio.file.Files.createSymbolicLink(
f.toPath(),
new File("../../Build/GitHooks/pre-commit").toPath()
)
}
}
prepare()