-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathbuild.gradle
77 lines (62 loc) · 1.74 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
73
74
75
76
77
plugins {
id 'java'
id 'org.jetbrains.intellij' version '1.17.0'
id 'jacoco'
}
group 'com.crowdin.crowdin-idea'
version '2.2.0'
sourceCompatibility = '17'
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'net.lingala.zip4j:zip4j:2.11.3'
implementation 'com.github.crowdin:crowdin-api-client-java:1.19.5'
implementation 'commons-io:commons-io:2.15.1'
implementation 'org.yaml:snakeyaml:2.2'
testImplementation 'junit:junit:4.13.1'
testImplementation 'org.junit.jupiter:junit-jupiter:5.5.2'
testImplementation 'org.hamcrest:hamcrest:2.2'
testImplementation 'org.mockito:mockito-core:4.0.0'
testImplementation 'org.mockito:mockito-junit-jupiter:4.0.0'
testImplementation 'org.mockito:mockito-inline:4.0.0'
}
test {
useJUnitPlatform()
}
intellij {
version = '2022.3.3'
plugins = ['Git4Idea']
updateSinceUntilBuild = false
}
patchPluginXml {
changeNotes = """
- Add escape_special_characters option support"""
}
wrapper {
gradleVersion = '8.5'
}
jacoco {
toolVersion = '0.8.10'
reportsDirectory = layout.buildDirectory.dir('reports')
}
//https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin-faq.html#jacoco-reports-0-coverage
test {
jacoco {
includeNoLocationClasses = true
excludes = ["jdk.internal.*"]
}
}
jacocoTestReport {
classDirectories.setFrom(instrumentCode)
reports {
xml.required = true
csv.required = false
xml.outputLocation = layout.buildDirectory.file('coverage.xml')
}
getExecutionData().setFrom(layout.buildDirectory.file('jacoco/test.exec'))
}
jacocoTestCoverageVerification {
classDirectories.setFrom(instrumentCode)
}