-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
59 lines (48 loc) · 1.62 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
group = "com.therandomlabs.curseapi"
version = "1.0.0"
ext {
commonGradleBranch = "master"
jacocoMinimumInstructionCoverage = 0.9
jacocoExcludes = [
"com.therandomlabs.curseapi.CurseAPIProvider",
"com.therandomlabs.curseapi.file.CurseAlternateFile",
"com.therandomlabs.curseapi.forgesvc.*",
"com.therandomlabs.curseapi.game.CurseGameVersion",
"com.therandomlabs.curseapi.game.CurseGameVersionGroup",
"com.therandomlabs.curseapi.util.*"
]
}
apply from: "https://raw.githubusercontent.com/TheRandomLabs/Common-Gradle/${project.commonGradleBranch}/build.gradle"
def retrofitVersion = "2.9.0"
def resilience4jVersion = "1.7.0"
dependencies {
api "com.squareup.moshi:moshi:1.12.0"
api "com.squareup.retrofit2:retrofit:${retrofitVersion}"
implementation "com.squareup.retrofit2:converter-moshi:${retrofitVersion}"
api "org.jsoup:jsoup:1.13.1"
implementation "io.github.resilience4j:resilience4j-circuitbreaker:${resilience4jVersion}"
implementation "io.github.resilience4j:resilience4j-retry:${resilience4jVersion}"
implementation "io.github.resilience4j:resilience4j-retrofit:${resilience4jVersion}"
}
jacocoTestCoverageVerification {
violationRules {
rule {
element = "CLASS"
limit {
counter = "INSTRUCTION"
value = "COVEREDRATIO"
minimum = 0.67
}
includes = [
"com.therandomlabs.curseapi.forgesvc.*"
]
}
}
}
javadoc.options.links.addAll([
"https://square.github.io/moshi/1.x/moshi/",
"https://square.github.io/okio/2.x/okio/",
"https://square.github.io/okhttp/3.x/okhttp/",
"https://square.github.io/retrofit/2.x/retrofit/",
"https://www.javadoc.io/doc/org.jsoup/jsoup/latest/"
])