Skip to content

Commit

Permalink
fix: Fixed Paper 1.20.2 Support
Browse files Browse the repository at this point in the history
  • Loading branch information
4drian3d committed Oct 27, 2023
1 parent 96e8f06 commit fe07351
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@ tasks {
javadoc {
options {
this.outputLevel = JavadocOutputLevel.QUIET
encoding = Charsets.UTF_8.name()
}
}
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
}
}

java {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group = io.github.4drian3d
version = 7.5.0
version = 7.5.1-SNAPSHOT
description=Bot protection system for Minecraft servers.

org.gradle.caching=true
Expand Down
6 changes: 6 additions & 0 deletions paper/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {

dependencies {
implementation(projects.core)
implementation(libs.configurate)
compileOnly(libs.paper)
}

Expand All @@ -19,4 +20,9 @@ tasks {
expand("version" to project.version)
}
}
shadowJar {
relocate("org.spongepowered", "me.xneox.epicguard.libs.configurate")
relocate("com.typesafe", "me.xneox.epicguard.libs.typesafe")
relocate("io.leangen.geantyref", "me.xneox.epicguard.libs.geantyref")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import java.util.stream.Stream;

@SuppressWarnings({"unused", "UnstableApiUsage"})
public class LibraryLoader implements PluginLoader {
public final class LibraryLoader implements PluginLoader {
@Override
public void classloader(@NotNull PluginClasspathBuilder classpathBuilder) {
final MavenLibraryResolver resolver = new MavenLibraryResolver();
Expand All @@ -23,7 +23,6 @@ public void classloader(@NotNull PluginClasspathBuilder classpathBuilder) {
resolver.addRepository(mavenCentral);

Stream.of(
"org.spongepowered:configurate-hocon:" + VersionUtils.CONFIGURATE,
"com.zaxxer:HikariCP:" + VersionUtils.HIKARI,
"com.github.ben-manes.caffeine:caffeine:" + VersionUtils.CAFFEINE,
"org.apache.commons:commons-compress:" + VersionUtils.COMMANDS_COMPRESS,
Expand Down

0 comments on commit fe07351

Please sign in to comment.