LibsDisguises/plugin/build.gradle.kts

79 lines
2.8 KiB
Plaintext
Raw Normal View History

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"))
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)
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)
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)
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/*",
"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 {
// 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
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"])
artifactId = "libsdisguises"
2024-08-05 13:12:51 +02:00
}
}
}