2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2026-06-19 09:27:52 +00:00

finish up javadocs / maven publications

This commit is contained in:
2023-03-22 18:55:41 +04:00
parent 773adc8e23
commit bf3c7ea8e8
4 changed files with 43 additions and 9 deletions
+7
View File
@@ -60,3 +60,10 @@ tasks {
}
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}
+19 -4
View File
@@ -10,13 +10,13 @@ repositories {
mavenCentral()
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") } // bungeecord
}
val bungeecordApiVersion = "1.19-R0.1-SNAPSHOT"
dependencies {
implementation(project(":RedisBungee-API")) {
api(project(":RedisBungee-API")) {
exclude("com.google.guava", "guava")
exclude("com.google.code.gson", "gson")
}
compileOnly("net.md-5:bungeecord-api:1.19-R0.1-SNAPSHOT")
compileOnly("net.md-5:bungeecord-api:$bungeecordApiVersion")
}
description = "RedisBungee Bungeecord implementation"
@@ -26,9 +26,15 @@ java {
withSourcesJar()
}
tasks {
withType<Javadoc> {
val options = options as StandardJavadocDocletOptions
options.use()
options.isDocFilesSubDirs = true
options.links(
"https://ci.md-5.net/job/BungeeCord/ws/api/target/apidocs/", // bungeecord api
)
}
runWaterfall {
waterfallVersion("1.19")
@@ -61,4 +67,13 @@ tasks {
relocate("ninja.leaping.configurate", "com.imaginarycode.minecraft.redisbungee.internal.configurate")
relocate("org.yaml", "com.imaginarycode.minecraft.redisbungee.internal.yml")
}
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}
+17 -5
View File
@@ -6,6 +6,11 @@ plugins {
id("net.kyori.blossom") version "1.2.0"
}
repositories {
mavenCentral()
maven { url = uri("https://repo.papermc.io/repository/maven-public/") }
}
dependencies {
api(project(":RedisBungee-API")) {
// Since velocity already includes guava / configurate exlude them
@@ -30,7 +35,12 @@ blossom {
tasks {
withType<Javadoc> {
val options = options as StandardJavadocDocletOptions
options.use()
options.isDocFilesSubDirs = true
options.links(
"https://jd.papermc.io/velocity/3.0.0/", // bungeecord api
)
}
runVelocity {
velocityVersion("3.2.0-SNAPSHOT")
@@ -56,8 +66,10 @@ tasks {
}
repositories {
mavenCentral()
maven { url = uri("https://repo.papermc.io/repository/maven-public/") }
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}
View File