-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathbuild.gradle
56 lines (47 loc) · 1.42 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
plugins {
id 'java'
//id "com.github.johnrengelman.shadow" version "5.2.0"
}
repositories {
mavenLocal()
maven {
url = 'https://repo.runelite.net'
}
mavenCentral()
}
def runeLiteVersion = 'latest.release'
dependencies {
compileOnly group: 'net.runelite', name:'client', version: runeLiteVersion
compileOnly 'org.projectlombok:lombok:1.18.20'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
testImplementation 'junit:junit:4.12'
testImplementation group: 'net.runelite', name:'client', version: runeLiteVersion
testImplementation group: 'org.mockito', name: 'mockito-core', version: '2.23.4'
testImplementation group: 'com.google.inject.extensions', name: 'guice-testlib', version: '4.1.0', {
exclude group: 'com.google.inject', module: 'guice'
}
}
group = 'inventorysetups'
version = 'v1.20.2'
sourceCompatibility = '1.8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
task createProperties(dependsOn: processResources) {
doLast {
new File("$buildDir/resources/main/invsetups_version.txt").text = "version=$project.version"
}
}
classes {
dependsOn createProperties
}
// To create a shadow jar, run `gradlew shadowJar`
// Output will be in build/libs
// Run it with `java -jar -ea <name>.jar`
//shadowJar {
// from sourceSets.test.output
// configurations = [project.configurations.testRuntimeClasspath]
// manifest {
// attributes "Main-Class": "inventorysetups.InventorySetupsPluginTest"
// }
//}