generated from runelite/example-plugin
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.gradle
82 lines (68 loc) · 2.09 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
78
79
80
81
82
plugins {
id 'java'
id 'idea'
id 'checkstyle'
id 'jacoco'
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
repositories {
mavenLocal()
maven {
url = 'https://repo.runelite.net'
}
mavenCentral()
}
def runeLiteVersion = 'latest.release'
dependencies {
compileOnly group: 'net.runelite', name: 'client', version: runeLiteVersion
compileOnly group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.12.5'
implementation group: 'com.google.inject.extensions', name: 'guice-multibindings', version: '4.1.0', {
exclude group: 'com.google.inject'
}
compileOnly 'org.projectlombok:lombok:1.18.20'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
testImplementation group: 'com.google.inject.extensions', name: 'guice-grapher', version: '4.1.0'
testImplementation group: 'org.mockito', name: 'mockito-junit-jupiter', version: '4.5.1'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.8.2'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.8.2'
testImplementation group: 'net.runelite', name: 'client', version: runeLiteVersion
testImplementation group: 'net.runelite', name: 'jshell', version: runeLiteVersion
}
group = 'com.duckblade.osrs'
version = '2.4.1'
sourceCompatibility = '1.8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
test {
useJUnitPlatform()
}
jacoco {
toolVersion = "0.8.6"
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test
reports {
xml.required = true
csv.required = false
html.required = true
}
afterEvaluate {
classDirectories.from = files(classDirectories.files.collect {
fileTree(dir: it, exclude: [
'**/com/duckblade/osrs/dpscalc/plugin/**',
'**/com/duckblade/osrs/dpscalc/calc/model/**',
'**/com/duckblade/osrs/dpscalc/calc/DpsComputeModule**',
])
})
}
}