2024-08-05 13:12:51 +02:00
|
|
|
plugins {
|
|
|
|
`maven-publish`
|
2024-09-10 06:22:32 +02:00
|
|
|
id("org.hibernate.build.maven-repo-auth") version "3.0.4" apply false
|
2024-08-05 13:12:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
version = "10.0.44-SNAPSHOT"
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compileOnly(project(":shared"))
|
2024-08-06 21:49:02 +02:00
|
|
|
compileOnly(project(":minimessage", "shadow"))
|
2024-08-05 13:12:51 +02:00
|
|
|
compileOnly(libs.io.netty.netty.buffer)
|
|
|
|
compileOnly(libs.io.netty.netty.codec)
|
|
|
|
compileOnly(libs.commons.lang.commons.lang)
|
2024-08-05 13:23:31 +02:00
|
|
|
compileOnly(libs.com.mojang.authlib.new)
|
2024-09-17 13:15:06 +02:00
|
|
|
compileOnly(libs.io.papermc.paper.paper.api);
|
2024-08-05 13:12:51 +02:00
|
|
|
compileOnly(libs.org.spigotmc.spigot.api)
|
|
|
|
compileOnly(libs.com.retro.packetevents)
|
2024-08-05 13:30:33 +02:00
|
|
|
compileOnly(libs.it.unimi.dsi.fastutil)
|
2024-08-12 13:37:56 +02:00
|
|
|
compileOnly(libs.placeholder.api)
|
2024-08-05 13:12:51 +02:00
|
|
|
}
|
|
|
|
|
2024-09-10 05:53:32 +02:00
|
|
|
tasks.withType<Javadoc>().configureEach {
|
|
|
|
title = "LibsDisguises"
|
|
|
|
|
|
|
|
javadocTool.set(
|
|
|
|
javaToolchains.javadocToolFor {
|
2024-09-10 06:43:24 +02:00
|
|
|
setDestinationDir(file("../build/docs/javadoc"))
|
2024-09-10 05:53:32 +02:00
|
|
|
languageVersion = JavaLanguageVersion.of(21)
|
2024-09-10 06:57:56 +02:00
|
|
|
include(
|
|
|
|
"me/libraryaddict/disguise/*",
|
|
|
|
"me/libraryaddict/disguise/disguisetypes/**",
|
|
|
|
"me/libraryaddict/disguise/events/**",
|
|
|
|
"me/libraryaddict/disguise/utilities/DisguiseUtilities.java",
|
|
|
|
"me/libraryaddict/disguise/utilities/SkinUtils.java",
|
|
|
|
"me/libraryaddict/disguise/utilities/mineskin/**",
|
|
|
|
"me/libraryaddict/disguise/utilities/params/**",
|
2024-09-10 07:07:06 +02:00
|
|
|
"me/libraryaddict/disguise/utilities/parser/*",
|
2024-09-10 06:57:56 +02:00
|
|
|
"me/libraryaddict/disguise/utilities/reflection/LibsProfileLookup.java",
|
|
|
|
"me/libraryaddict/disguise/utilities/reflection/NmsVersion.java",
|
|
|
|
"me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java",
|
|
|
|
"me/libraryaddict/disguise/utilities/translations/**",
|
|
|
|
)
|
2024-09-10 05:53:32 +02:00
|
|
|
}
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2024-08-05 13:12:51 +02:00
|
|
|
publishing {
|
|
|
|
repositories {
|
2024-08-07 02:06:56 +02:00
|
|
|
// If 'publishToExternalRepo' is false or missing, only publish to local.
|
|
|
|
// Else if this is a snapshot build, use the snapshot repo
|
2024-08-05 16:13:24 +02:00
|
|
|
// Otherwise, use the release repo
|
2024-08-07 02:06:56 +02:00
|
|
|
if (System.getProperty("publishToExternalRepo", "false").equals("false")) {
|
|
|
|
mavenLocal();
|
2024-08-05 16:10:46 +02:00
|
|
|
} else {
|
2024-09-10 06:43:24 +02:00
|
|
|
apply(plugin = "org.hibernate.build.maven-repo-auth")
|
|
|
|
|
|
|
|
if (project.version.toString().contains("-SNAPSHOT")) {
|
|
|
|
maven {
|
|
|
|
name = "md_5-snapshots"
|
|
|
|
url = uri("https://repo.md-5.net/content/repositories/snapshots/")
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
maven {
|
|
|
|
name = "md_5-releases"
|
|
|
|
url = uri("https://repo.md-5.net/content/repositories/releases/")
|
|
|
|
}
|
2024-08-05 16:10:46 +02:00
|
|
|
}
|
2024-08-05 16:02:25 +02:00
|
|
|
}
|
2024-08-05 13:12:51 +02:00
|
|
|
}
|
2024-08-05 16:13:24 +02:00
|
|
|
|
2024-08-05 13:12:51 +02:00
|
|
|
publications {
|
|
|
|
create<MavenPublication>("mavenJava") {
|
|
|
|
from(components["java"])
|
|
|
|
|
2024-08-07 02:06:56 +02:00
|
|
|
artifactId = "libsdisguises"
|
2024-08-05 13:12:51 +02:00
|
|
|
}
|
|
|
|
}
|
2024-08-06 21:49:02 +02:00
|
|
|
}
|