* Implement direct server joining for 1.6.2 through 1.19.4 * Implement direct server joining for versions before 1.6.2 * Ignore methods with a $ in them * Run intl:extract * Improve code of MinecraftTransformer * Support showing last played time for profiles before 1.7 * Reorganize QuickPlayVersion a bit to prepare for singleplayer * Only inject quick play checking in versions where it's needed * Optimize agent some and fix error on NeoForge * Remove some code for quickplay singleplayer support before 1.20, as we can't reasonably support that with an agent * Invert the default hasServerQuickPlaySupport return value * Remove Play Anyway button * Fix "Server couldn't be contacted" on singleplayer worlds * Fix "Jump back in" section not working
59 lines
1.1 KiB
Plaintext
59 lines
1.1 KiB
Plaintext
plugins {
|
|
java
|
|
id("com.diffplug.spotless") version "7.0.4"
|
|
id("com.gradleup.shadow") version "9.0.0-rc2"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.ow2.asm:asm:9.8")
|
|
implementation("org.ow2.asm:asm-tree:9.8")
|
|
|
|
testImplementation(libs.junit.jupiter)
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(11)
|
|
}
|
|
}
|
|
|
|
tasks.withType<JavaCompile>().configureEach {
|
|
options.release = 8
|
|
options.compilerArgs.addAll(listOf("-Xlint:all", "-Werror"))
|
|
}
|
|
|
|
spotless {
|
|
java {
|
|
palantirJavaFormat()
|
|
removeUnusedImports()
|
|
}
|
|
}
|
|
|
|
tasks.jar {
|
|
enabled = false
|
|
}
|
|
|
|
tasks.shadowJar {
|
|
archiveFileName = "theseus.jar"
|
|
manifest {
|
|
attributes["Premain-Class"] = "com.modrinth.theseus.agent.TheseusAgent"
|
|
}
|
|
|
|
enableRelocation = true
|
|
relocationPrefix = "com.modrinth.theseus.shadow"
|
|
}
|
|
|
|
tasks.named<Test>("test") {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
tasks.withType<AbstractArchiveTask>().configureEach {
|
|
isPreserveFileTimestamps = false
|
|
isReproducibleFileOrder = true
|
|
}
|