fix(ci): Fixed compilation

This commit is contained in:
Adrian 2023-09-03 18:14:37 -05:00
parent e551037fb5
commit 0b1ec8a591
No known key found for this signature in database
GPG Key ID: FB8EF84DCE1BE452
5 changed files with 28 additions and 9 deletions

View File

@ -12,8 +12,8 @@ tasks {
(options as StandardJavadocDocletOptions).run{ (options as StandardJavadocDocletOptions).run{
encoding = Charsets.UTF_8.name() encoding = Charsets.UTF_8.name()
links( links(
"https://jd.advntr.dev/api/4.12.0/", "https://jd.advntr.dev/api/4.14.0/",
"https://jd.advntr.dev/text-minimessage/4.12.0/", "https://jd.advntr.dev/text-minimessage/4.14.0/",
"https://jd.papermc.io/velocity/3.0.0/" "https://jd.papermc.io/velocity/3.0.0/"
) )
} }

View File

@ -4,4 +4,13 @@ allprojects {
repositories { repositories {
maven("https://repo.papermc.io/repository/maven-public/") maven("https://repo.papermc.io/repository/maven-public/")
} }
tasks.withType<JavaCompile> {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
}
configure<JavaPluginExtension> {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
} }

View File

@ -4,7 +4,6 @@ plugins {
} }
repositories { repositories {
mavenCentral()
maven("https://repo.alessiodp.com/releases/") maven("https://repo.alessiodp.com/releases/")
} }

View File

@ -42,10 +42,6 @@ tasks {
build { build {
dependsOn(shadowJar) dependsOn(shadowJar)
} }
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
}
runServer { runServer {
minecraftVersion("1.19.4") minecraftVersion("1.19.4")
} }
@ -55,5 +51,3 @@ tasks {
} }
} }
} }
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))

View File

@ -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 <https://www.gnu.org/licenses/>.
*/
package io.github._4drian3d.authmevelocity.velocity.hooks; package io.github._4drian3d.authmevelocity.velocity.hooks;
import com.google.inject.Inject; import com.google.inject.Inject;