forked from Bot-detector/bot-detector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
57 lines (46 loc) · 1.35 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
plugins {
id 'java'
id 'checkstyle'
//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.4'
annotationProcessor 'org.projectlombok:lombok:1.18.4'
testImplementation 'junit:junit:4.12'
testImplementation group: 'net.runelite', name:'client', version: runeLiteVersion
testImplementation group: 'net.runelite', name:'jshell', version: runeLiteVersion
}
group = 'com.botdetector'
version = '1.3.9.4'
sourceCompatibility = '1.8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
// https://github.com/dillydill123/inventory-setups/blob/2643da8f1952e30be554d0d601397daced9c3120/build.gradle#L39
task createProperties(dependsOn: processResources) {
doLast {
new File("$buildDir/resources/main/com/botdetector/version.txt").text = "version=$project.version"
}
}
classes {
dependsOn createProperties
}
// java -DBotDetectorAPIPath=https://www.osrsbotdetector.com/dev -jar JARFILE
/*
shadowJar {
from sourceSets.test.output
configurations = [project.configurations.testRuntimeClasspath]
manifest {
attributes "Main-Class": "com.botdetector.BotDetectorPluginTest"
}
}
*/