-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathbuild.gradle
70 lines (55 loc) · 1.64 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
plugins {
id 'java'
id 'checkstyle'
id 'pmd'
}
checkstyle {
toolVersion = "8.5"
}
pmd {
consoleOutput = true
toolVersion = "6.44.0"
ruleSetFiles = files("config/pmd-ruleset.xml")
ruleSets = []
}
repositories {
mavenLocal()
maven {
url = 'https://repo.runelite.net'
}
mavenCentral()
}
def runeLiteVersion = 'latest.release'
dependencies {
implementation 'org.tomlj:tomlj:1.1.1'
testImplementation 'org.tomlj:tomlj:1.1.1'
compileOnly group: 'net.runelite', name: 'client', version: runeLiteVersion
compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.30'
testCompileOnly 'org.projectlombok:lombok:1.18.30'
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:5.1.1'
testImplementation group: 'net.runelite', name: 'client', version: runeLiteVersion
testImplementation group: 'net.runelite', name: 'jshell', version: runeLiteVersion
}
group = 'melky.resourcepacks'
version = '1.6.3'
tasks.withType(Pmd) {
enabled gradle.startParameter.taskNames.contains('pmdMain')
}
tasks.withType(Checkstyle) {
enabled gradle.startParameter.taskNames.contains('checkstyleMain')
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.release.set(11)
}
tasks.withType(Jar) {
exclude 'org/tomlj/TomlCommand.class'
exclude 'org/antlr/v4/runtime/misc/TestRig.class'
}
test {
systemProperty('spriteFolder', System.getProperty('spriteFolder'))
systemProperty('packFolder', System.getProperty('packFolder'))
}