forked from dillydill123/inventory-setups
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
59 lines (49 loc) · 1.41 KB
/
build.gradle
File metadata and controls
59 lines (49 loc) · 1.41 KB
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
plugins {
id 'java'
//id "com.github.johnrengelman.shadow" version "5.2.0"
}
repositories {
mavenLocal()
maven {
url = 'http://repo.runelite.net'
}
mavenCentral()
}
def runeLiteVersion = '1.7.22'
dependencies {
compileOnly group: 'net.runelite', name:'client', version: runeLiteVersion
compileOnly 'org.projectlombok:lombok:1.18.4'
annotationProcessor 'org.projectlombok:lombok:1.18.4'
testImplementation 'junit:junit:4.12'
testImplementation 'org.slf4j:slf4j-simple:1.7.12'
testImplementation group: 'net.runelite', name:'client', version: runeLiteVersion, {
exclude group: 'ch.qos.logback', module: 'logback-classic'
}
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.23.4'
testCompile group: 'com.google.inject.extensions', name: 'guice-testlib', version: '4.1.0'
}
group = 'inventorysetups'
version = 'v1.12'
sourceCompatibility = '1.8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
task createProperties(dependsOn: processResources) {
doLast {
new File("$buildDir/resources/main/version.properties").withWriter { w ->
Properties p = new Properties()
p['version'] = project.version.toString()
p.store w, null
}
}
}
classes {
dependsOn createProperties
}
//shadowJar {
// from sourceSets.test.output
// configurations = [project.configurations.testRuntimeClasspath]
// manifest {
// attributes "Main-Class": "inventorysetups.InventorySetupsPluginTest"
// }
//}