forked from open-osrs/runelite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
injector.gradle.kts
54 lines (40 loc) · 1.97 KB
/
injector.gradle.kts
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
import ProjectVersions.openosrsVersion
import ProjectVersions.rsversion
group = "com.openosrs"
version = 1.0
val vanillaDep: Configuration by configurations.creating
plugins {
java
}
dependencies {
vanillaDep(group = "net.runelite.rs", name = "vanilla", version = rsversion.toString())
annotationProcessor(group = "org.projectlombok", name = "lombok", version = ProjectVersions.lombokVersion)
testAnnotationProcessor(group = "org.projectlombok", name = "lombok", version = ProjectVersions.lombokVersion)
compileOnly(group = "org.projectlombok", name = "lombok", version = ProjectVersions.lombokVersion)
testCompileOnly(group = "org.projectlombok", name = "lombok", version = ProjectVersions.lombokVersion)
implementation(gradleApi())
implementation(project(":deobfuscator"))
implementation(project(":runescape-api"))
implementation(project(":runescape-client"))
implementation(project(":runelite-mixins"))
implementation(group = "org.ow2.asm", name = "asm", version = "9.0")
implementation(group = "org.ow2.asm", name = "asm-util", version = "9.0")
implementation(group = "org.jetbrains", name = "annotations", version = "22.0.0")
implementation(group = "com.google.guava", name = "guava", version = "30.1.1-jre")
implementation(group = "net.sf.jopt-simple", name = "jopt-simple", version = "5.0.4")
testImplementation(group = "junit", name = "junit", version = "4.12")
}
tasks.register<JavaExec>("inject") {
dependsOn(":runelite-mixins:build")
dependsOn(":runescape-api:build")
dependsOn(":runescape-client:build")
enableAssertions = true
main = "com.openosrs.injector.Injector"
val out = "${project.extra["rootPath"]}/runelite-client/build/injected/injected-client.oprs"
outputs.file(out)
classpath = sourceSets["main"].runtimeClasspath
args("--outmode", "jar", "--vanilla", vanillaDep.singleFile, "--version", openosrsVersion, "--output", out)
outputs.upToDateWhen {
false
}
}