parent
d04626fb00
commit
74b75fc5f9
@ -1,50 +1,7 @@
|
||||
plugins {
|
||||
java
|
||||
alias(libs.plugins.shadow)
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven("https://repo.alessiodp.com/releases/") {
|
||||
mavenContent {
|
||||
includeGroup("net.byteflux")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
apply<JavaPlugin>()
|
||||
|
||||
repositories {
|
||||
maven("https://repo.papermc.io/repository/maven-public/")
|
||||
}
|
||||
|
||||
tasks.compileJava {
|
||||
options.encoding = Charsets.UTF_8.name()
|
||||
options.release.set(17)
|
||||
}
|
||||
|
||||
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
|
||||
}
|
||||
|
||||
dependencies {
|
||||
shadow(project(":authmevelocity-common", "shadow"))
|
||||
shadow(projects.authmevelocityApiPaper)
|
||||
shadow(projects.authmevelocityApiVelocity)
|
||||
shadow(project(":authmevelocity-velocity", "shadow"))
|
||||
shadow(project(":authmevelocity-paper", "shadow"))
|
||||
}
|
||||
|
||||
tasks {
|
||||
shadowJar {
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
archiveFileName.set("AuthMeVelocity.jar")
|
||||
configurations = listOf(project.configurations.shadow.get())
|
||||
exclude("net/byteflux/libby/**/")
|
||||
exclude("org/bstats/**/")
|
||||
}
|
||||
|
||||
build {
|
||||
dependsOn(shadowJar)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -23,12 +23,15 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly(projects.authmevelocityCommon)
|
||||
compileOnly(projects.authmevelocityApiPaper)
|
||||
compileOnly(libs.paper)
|
||||
compileOnly(libs.authme)
|
||||
|
||||
compileOnly(libs.miniplaceholders)
|
||||
shadow(libs.libby.bukkit)
|
||||
|
||||
implementation(projects.authmevelocityCommon)
|
||||
implementation(projects.authmevelocityApiPaper)
|
||||
|
||||
implementation(libs.libby.bukkit)
|
||||
}
|
||||
|
||||
bukkit {
|
||||
@ -45,8 +48,20 @@ bukkit {
|
||||
|
||||
tasks {
|
||||
shadowJar {
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
//duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
archiveFileName.set("AuthMeVelocity-Paper-${project.version}.jar")
|
||||
archiveClassifier.set("")
|
||||
relocate("net.byteflux.libby", "io.github._4drian3d.authmevelocity.libs.libby")
|
||||
configurations = listOf(project.configurations.shadow.get())
|
||||
}
|
||||
|
||||
build {
|
||||
dependsOn(shadowJar)
|
||||
}
|
||||
}
|
||||
|
||||
tasks.compileJava {
|
||||
options.encoding = Charsets.UTF_8.name()
|
||||
options.release.set(17)
|
||||
}
|
||||
|
||||
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
|
||||
|
@ -17,23 +17,21 @@
|
||||
|
||||
package io.github._4drian3d.authmevelocity.paper;
|
||||
|
||||
import io.github._4drian3d.authmevelocity.paper.listeners.AuthMeListener;
|
||||
import io.github._4drian3d.authmevelocity.paper.listeners.MessageListener;
|
||||
import com.google.common.io.ByteArrayDataOutput;
|
||||
import com.google.common.io.ByteStreams;
|
||||
import io.github._4drian3d.authmevelocity.common.LibsManager;
|
||||
import io.github._4drian3d.authmevelocity.common.MessageType;
|
||||
import io.github._4drian3d.authmevelocity.common.configuration.ConfigurationContainer;
|
||||
import io.github._4drian3d.authmevelocity.common.configuration.Loader;
|
||||
import io.github._4drian3d.authmevelocity.common.configuration.PaperConfiguration;
|
||||
import io.github._4drian3d.authmevelocity.common.MessageType;
|
||||
import io.github._4drian3d.authmevelocity.common.LibsManager;
|
||||
import com.google.common.io.ByteArrayDataOutput;
|
||||
import com.google.common.io.ByteStreams;
|
||||
|
||||
import io.github._4drian3d.authmevelocity.paper.listeners.AuthMeListener;
|
||||
import io.github._4drian3d.authmevelocity.paper.listeners.MessageListener;
|
||||
import net.byteflux.libby.BukkitLibraryManager;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import net.byteflux.libby.BukkitLibraryManager;
|
||||
|
||||
import java.util.logging.Level;
|
||||
|
||||
public final class AuthMeVelocityPlugin extends JavaPlugin {
|
||||
|
@ -22,22 +22,32 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly(projects.authmevelocityCommon)
|
||||
compileOnly(projects.authmevelocityApiVelocity)
|
||||
compileOnly(libs.velocity)
|
||||
annotationProcessor(libs.velocity)
|
||||
|
||||
compileOnly(libs.miniplaceholders)
|
||||
compileOnly(libs.fastlogin.velocity)
|
||||
shadow(libs.libby.velocity)
|
||||
shadow(libs.bstats.velocity)
|
||||
annotationProcessor(libs.velocity)
|
||||
|
||||
implementation(projects.authmevelocityCommon)
|
||||
implementation(projects.authmevelocityApiVelocity)
|
||||
|
||||
implementation(libs.libby.velocity)
|
||||
implementation(libs.bstats.velocity)
|
||||
}
|
||||
|
||||
tasks {
|
||||
shadowJar {
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
|
||||
archiveFileName.set("AuthMeVelocity-Velocity-${project.version}.jar")
|
||||
archiveClassifier.set("")
|
||||
|
||||
relocate("net.byteflux.libby", "io.github._4drian3d.authmevelocity.libs.libby")
|
||||
relocate("org.bstats", "io.github._4drian3d.authmevelocity.libs.bstats")
|
||||
configurations = listOf(project.configurations.shadow.get())
|
||||
}
|
||||
|
||||
build {
|
||||
dependsOn(shadowJar)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user