-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
67 lines (59 loc) · 1.92 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
plugins {
id 'java'
id 'maven-publish'
}
group = 'com.github.OSRSB'
allprojects {
repositories {
mavenLocal()
maven {
url "https://repo.runelite.net"
}
maven {
url "https://jitpack.io"
}
mavenCentral()
}
}
publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
}
static def getRuneLiteVersion() {
URL url = new URL("http://repo.runelite.net/net/runelite/client/maven-metadata.xml")
URLConnection urlConnection = url.openConnection()
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(
urlConnection.getInputStream()))
String latestName = null
String inputLine
while ((inputLine = bufferedReader.readLine()) != null) {
inputLine = inputLine.trim()
if (inputLine.contains("<release>")) {
latestName = inputLine.replace("<release>", "").replace("</release>", "")
}
}
bufferedReader.close()
return latestName
}
dependencies {
implementation 'com.google.code.gson:gson:2.9.0'
implementation 'org.json:json:20220320'
implementation group: 'net.runelite', name:'client', version: runeLiteVersion
implementation group: 'net.runelite', name: 'cache', version: runeLiteVersion
compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.24'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.slf4j:slf4j-simple:1.7.36'
testImplementation group: 'net.runelite', name: 'client', version: runeLiteVersion, {
exclude group: 'ch.qos.logback', module: 'logback-classic'
}
implementation group: 'net.sf.jopt-simple', name:'jopt-simple', version: '5.0.4'
// implementation 'com.github.OSRSB:OsrsBot:master-SNAPSHOT'
implementation project(":OSRSBot")
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}