-
Notifications
You must be signed in to change notification settings - Fork 2
minor-optimizations #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
78fef0b
ebbb2cf
5886d45
a91404b
bdf30d6
f955362
ff14b74
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| build/ | ||
| .gradle/ | ||
| bin/ | ||
| bin/ | ||
| .idea/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,85 @@ | ||
| import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar | ||
|
|
||
| plugins { | ||
| java | ||
| id("com.gradleup.shadow") version "8.3.0" | ||
| id("io.papermc.paperweight.userdev") version "2.0.0-beta.19" | ||
| } | ||
|
|
||
| group = "tf.tuff" | ||
| version = "1.0.0" | ||
|
|
||
|
|
||
| repositories { | ||
| mavenCentral() | ||
| maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") | ||
| maven("https://repo.papermc.io/repository/maven-public/") | ||
| maven("https://repo.viaversion.com/everything/") | ||
| maven("https://repo.codemc.io/repository/maven-releases/") | ||
| maven("https://repo.codemc.io/repository/maven-snapshots/") | ||
| maven("https://jitpack.io") | ||
| maven("https://repo.dmulloy2.net/repository/public/") | ||
| maven("https://repo.codemc.io/repository/maven-releases/") | ||
| } | ||
|
|
||
| dependencies { | ||
| paperweight.paperDevBundle("1.21.8-R0.1-SNAPSHOT") | ||
|
|
||
| implementation(libs.packetevents.spigot) | ||
| compileOnly(libs.viabackwards) | ||
| compileOnly(libs.viaversion) | ||
| compileOnly(libs.fastutil) | ||
| implementation(libs.jackson.databind) | ||
| compileOnly(libs.netty.all) | ||
| implementation(libs.java.websocket) | ||
|
|
||
| compileOnly(libs.lombok) | ||
| annotationProcessor(libs.lombok) | ||
| } | ||
|
|
||
|
|
||
| java { | ||
| sourceCompatibility = JavaVersion.VERSION_21 | ||
| targetCompatibility = JavaVersion.VERSION_21 | ||
| } | ||
|
|
||
| tasks { | ||
| withType<JavaCompile>().configureEach { | ||
| options.encoding = "UTF-8" | ||
| } | ||
|
|
||
| processResources { | ||
| filesMatching("plugin.yml") { | ||
| expand( | ||
| "version" to project.version, | ||
| "name" to project.name | ||
| ) | ||
| } | ||
| } | ||
|
|
||
| named<ShadowJar>("shadowJar") { | ||
| archiveClassifier.set("") | ||
| archiveFileName.set("${project.name}-${project.version}.jar") | ||
|
|
||
| relocate("com.github.retrooper.packetevents", "tf.tuff.packetevents") | ||
| relocate("io.github.retrooper.packetevents", "tf.tuff.packetevents") | ||
| relocate("com.fasterxml.jackson", "tf.tuff.jackson") | ||
| relocate("org.java_websocket", "tf.tuff.websocket") | ||
|
|
||
| exclude("META-INF/*.SF") | ||
| exclude("META-INF/*.DSA") | ||
| exclude("META-INF/*.RSA") | ||
| exclude("META-INF/LICENSE") | ||
| exclude("META-INF/NOTICE") | ||
| exclude("META-INF/versions/**") | ||
| exclude("module-info.class") | ||
| } | ||
|
|
||
| withType<Jar> { | ||
| enabled = false | ||
| } | ||
|
|
||
| named("build") { | ||
| dependsOn(shadowJar) | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| [versions] | ||
|
|
||
| packetevents = "2.11.1" | ||
| viabackwards = "5.3.2" | ||
| viaversion = "5.4.1" | ||
| fastutil = "8.5.16" | ||
| jackson = "2.15.2" | ||
| netty = "4.1.97.Final" | ||
| websocket = "1.5.4" | ||
| lombok = "1.18.30" | ||
|
|
||
| [libraries] | ||
|
|
||
| packetevents-spigot = { module = "com.github.retrooper:packetevents-spigot", version.ref = "packetevents" } | ||
| viabackwards = { module = "com.viaversion:viabackwards", version.ref = "viabackwards" } | ||
| viaversion = { module = "com.viaversion:viaversion", version.ref = "viaversion" } | ||
| fastutil = { module = "it.unimi.dsi:fastutil", version.ref = "fastutil" } | ||
| jackson-databind = { module = "com.fasterxml.jackson.core:jackson-databind", version.ref = "jackson" } | ||
| netty-all = { module = "io.netty:netty-all", version.ref = "netty" } | ||
| java-websocket = { module = "org.java-websocket:Java-WebSocket", version.ref = "websocket" } | ||
| lombok = { module = "org.projectlombok:lombok", version.ref = "lombok" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How did these get added again? Did my gitignore not work or do you need to remove them from tracking?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TurboMaxe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TurboMaxe