Skip to content

Commit

Permalink
chore: Rewrote gradle scripts for KTS and prep for 9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Pazaz committed Jan 3, 2024
1 parent ed5316e commit f63899a
Show file tree
Hide file tree
Showing 12 changed files with 74 additions and 102 deletions.
Empty file removed build.gradle
Empty file.
31 changes: 0 additions & 31 deletions client/build.gradle

This file was deleted.

24 changes: 24 additions & 0 deletions client/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
plugins {
java
application
}

dependencies {
compileOnly(project(":deob-annotations"))
}

java {
sourceCompatibility = JavaVersion.VERSION_1_5
}

application {
mainClass = "client"
}

tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}

tasks.withType<Jar> {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
10 changes: 0 additions & 10 deletions deob-annotations/build.gradle

This file was deleted.

12 changes: 12 additions & 0 deletions deob-annotations/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
plugins {
java
id("java-library")
}

java {
sourceCompatibility = JavaVersion.VERSION_1_5
}

tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
26 changes: 0 additions & 26 deletions loader/build.gradle

This file was deleted.

15 changes: 15 additions & 0 deletions loader/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
plugins {
java
}

dependencies {
compileOnly(project(":deob-annotations"))
}

java {
sourceCompatibility = JavaVersion.VERSION_1_5
}

tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
17 changes: 0 additions & 17 deletions settings.gradle

This file was deleted.

8 changes: 8 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
rootProject.name = "rs2"

include(
"deob-annotations",
"client",
"loader",
"tools"
)
18 changes: 0 additions & 18 deletions tools/build.gradle

This file was deleted.

14 changes: 14 additions & 0 deletions tools/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
plugins {
java
}

tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}

tasks.register("sig", JavaExec::class) {
mainClass = "lostcity.tools.LoaderSig"
classpath = sourceSets["main"].runtimeClasspath
workingDir = rootProject.projectDir
args = listOf("client/build/libs/client.jar")
}
1 change: 1 addition & 0 deletions tools/src/main/java/lostcity/tools/LoaderSig.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public static void main(String[] args) {
Files.write(Paths.get("loader/build/libs/runescape" + uriSha + ".jar"), src);
} catch (Exception ex) {
ex.printStackTrace();
System.exit(1);
}
}
}

0 comments on commit f63899a

Please sign in to comment.