diff --git a/api/velocity/build.gradle.kts b/api/velocity/build.gradle.kts index ad2df7d..f885f1e 100644 --- a/api/velocity/build.gradle.kts +++ b/api/velocity/build.gradle.kts @@ -12,8 +12,8 @@ tasks { (options as StandardJavadocDocletOptions).run{ encoding = Charsets.UTF_8.name() links( - "https://jd.advntr.dev/api/4.12.0/", - "https://jd.advntr.dev/text-minimessage/4.12.0/", + "https://jd.advntr.dev/api/4.14.0/", + "https://jd.advntr.dev/text-minimessage/4.14.0/", "https://jd.papermc.io/velocity/3.0.0/" ) } diff --git a/build.gradle.kts b/build.gradle.kts index 91f84ba..31023db 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,4 +4,13 @@ allprojects { repositories { maven("https://repo.papermc.io/repository/maven-public/") } + + tasks.withType { + options.encoding = Charsets.UTF_8.name() + options.release.set(17) + } + + configure { + toolchain.languageVersion.set(JavaLanguageVersion.of(17)) + } } diff --git a/common/build.gradle.kts b/common/build.gradle.kts index a27bc84..33ac686 100644 --- a/common/build.gradle.kts +++ b/common/build.gradle.kts @@ -4,7 +4,6 @@ plugins { } repositories { - mavenCentral() maven("https://repo.alessiodp.com/releases/") } diff --git a/paper/build.gradle.kts b/paper/build.gradle.kts index a8bf9a2..44bb521 100644 --- a/paper/build.gradle.kts +++ b/paper/build.gradle.kts @@ -42,10 +42,6 @@ tasks { build { dependsOn(shadowJar) } - compileJava { - options.encoding = Charsets.UTF_8.name() - options.release.set(17) - } runServer { minecraftVersion("1.19.4") } @@ -55,5 +51,3 @@ tasks { } } } - -java.toolchain.languageVersion.set(JavaLanguageVersion.of(17)) diff --git a/velocity/src/main/java/io/github/_4drian3d/authmevelocity/velocity/hooks/AuthMeContexts.java b/velocity/src/main/java/io/github/_4drian3d/authmevelocity/velocity/hooks/AuthMeContexts.java index 5cb3a64..32a3a96 100644 --- a/velocity/src/main/java/io/github/_4drian3d/authmevelocity/velocity/hooks/AuthMeContexts.java +++ b/velocity/src/main/java/io/github/_4drian3d/authmevelocity/velocity/hooks/AuthMeContexts.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2023 AuthMeVelocity Contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package io.github._4drian3d.authmevelocity.velocity.hooks; import com.google.inject.Inject;