generated from runelite/example-plugin
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
54 lines (43 loc) · 1.34 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
plugins {
id 'java'
id 'application'
}
repositories {
mavenLocal()
maven {
url = 'https://repo.runelite.net'
}
mavenCentral()
}
def runeLiteVersion = 'latest.release'
// Test locally via Gradle: "./gradlew run -DgimpDev=true"
final boolean isGimpDev = Boolean.TRUE.toString().equalsIgnoreCase(System.getProperty("gimpDev"))
dependencies {
if (isGimpDev) {
implementation group: 'net.runelite', name: 'client', version: runeLiteVersion
} else {
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: 'net.runelite', name: 'jshell', version: runeLiteVersion
implementation('io.socket:socket.io-client:2.0.1') {
exclude group: 'com.squareup.okhttp3', module: 'okhttp'
}
}
group = 'com.gimp'
version = '2.9.0'
sourceCompatibility = isGimpDev ? '11' : '1.8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.release.set(11)
}
// Allows us to use the plugin via the Gradle "run" task
application {
mainClassName = 'com.gimp.GimPlugin'
}
run {
enableAssertions = true
}