44 lines
1022 B
Plaintext
44 lines
1022 B
Plaintext
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|
|
|
plugins {
|
|
java
|
|
id("com.github.johnrengelman.shadow") version "7.1.2"
|
|
}
|
|
|
|
repositories {
|
|
maven("https://repo.alessiodp.com/releases/")
|
|
}
|
|
|
|
allprojects {
|
|
apply(plugin = "java")
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://repo.papermc.io/repository/maven-public/")
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
shadow(project(":authmevelocity-common", "shadow"))
|
|
shadow(project(":authmevelocity-api-paper"))
|
|
shadow(project(":authmevelocity-api-velocity"))
|
|
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())
|
|
}
|
|
|
|
build {
|
|
dependsOn(shadowJar)
|
|
}
|
|
|
|
compileJava {
|
|
options.encoding = Charsets.UTF_8.name()
|
|
|
|
options.release.set(17)
|
|
}
|
|
} |