-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
72 lines (57 loc) · 1.45 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
61
62
63
64
65
66
67
68
69
70
71
72
plugins {
id 'jacoco'
id 'java-library'
id 'groovy'
id 'org.jetbrains.intellij' version '0.4.16'
id 'org.kordamp.gradle.markdown' version '2.0.0'
id 'com.adarshr.test-logger' version '1.7.0'
}
group 'org.github.otanikotani'
sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
jcenter()
mavenCentral()
}
dependencies {
testImplementation 'org.codehaus.groovy:groovy-all:2.4.17'
testImplementation(group: 'org.spockframework', name: 'spock-core', version: '1.3-groovy-2.4') {
//This is to avoid issues with intellij plugin as it has a specific groovy jar in it
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}
}
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
version '2019.3.1'
plugins = ['java']
}
patchPluginXml {
dependsOn markdownToHtml
changeNotes = {
return new File("build/gen-html/CHANGELOG.html").text
}
}
markdownToHtml {
sourceDir = new File("docs")
}
testlogger {
theme 'mocha'
showSkipped true
}
test {
ignoreFailures = true
finalizedBy jacocoTestReport
}
jacoco {
toolVersion = "0.8.5"
}
jacocoTestReport {
reports {
xml.enabled true
xml.destination new File("${buildDir}/reports/jacoco/report.xml")
csv.enabled false
html.destination file("${buildDir}/jacocoHtml")
}
}
publishPlugin {
token = System.getenv("ORG_GRADLE_PROJECT_intellijPublishToken")
}