misc: Improved dependencies declaration with libraries catalog
This commit is contained in:
parent
284164ba86
commit
fa674a57f6
@ -8,17 +8,19 @@ java {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly("io.papermc.paper:paper-api:1.19.1-R0.1-SNAPSHOT")
|
compileOnly(libs.paper)
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
javadoc {
|
javadoc {
|
||||||
options.encoding = Charsets.UTF_8.name()
|
(options as StandardJavadocDocletOptions).run {
|
||||||
(options as StandardJavadocDocletOptions).links(
|
encoding = Charsets.UTF_8.name()
|
||||||
"https://jd.adventure.kyori.net/api/4.11.0/",
|
links(
|
||||||
"https://jd.adventure.kyori.net/text-minimessage/4.11.0/",
|
"https://jd.adventure.kyori.net/api/4.11.0/",
|
||||||
"https://jd.papermc.io/paper/1.19/"
|
"https://jd.adventure.kyori.net/text-minimessage/4.11.0/",
|
||||||
)
|
"https://jd.papermc.io/paper/1.19/"
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly("com.velocitypowered:velocity-api:3.1.2-SNAPSHOT")
|
compileOnly(libs.velocity)
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
plugins {
|
plugins {
|
||||||
java
|
java
|
||||||
id("com.github.johnrengelman.shadow") version "7.1.2"
|
alias(libs.plugins.shadow)
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("net.kyori.blossom") version "1.3.1"
|
alias(libs.plugins.blossom)
|
||||||
id("com.github.johnrengelman.shadow") version "7.1.2"
|
// Required to shadow packages
|
||||||
|
alias(libs.plugins.shadow)
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
@ -9,9 +10,9 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly("org.spongepowered:configurate-hocon:4.1.2")
|
compileOnly(libs.configurate.hocon)
|
||||||
compileOnly("net.byteflux:libby-core:1.1.5")
|
compileOnly(libs.libby.core)
|
||||||
compileOnly("net.kyori:adventure-api:4.12.0")
|
compileOnly(libs.adventure)
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
@ -26,4 +27,6 @@ blossom {
|
|||||||
replaceTokenIn("src/main/java/me/adrianed/authmevelocity/common/Constants.java")
|
replaceTokenIn("src/main/java/me/adrianed/authmevelocity/common/Constants.java")
|
||||||
replaceToken("{version}", project.version)
|
replaceToken("{version}", project.version)
|
||||||
replaceToken("{description}", project.description)
|
replaceToken("{description}", project.description)
|
||||||
|
replaceToken("{configurate}", libs.versions.configurate.get())
|
||||||
|
replaceToken("{geantyref}", libs.versions.geantyref.get())
|
||||||
}
|
}
|
@ -5,6 +5,6 @@ public final class Constants {
|
|||||||
|
|
||||||
public static final String VERSION = "{version}";
|
public static final String VERSION = "{version}";
|
||||||
public static final String DESCRIPTION = "{description}";
|
public static final String DESCRIPTION = "{description}";
|
||||||
public static final String CONFIGURATE = "4.1.2";
|
public static final String CONFIGURATE = "{configurate}";
|
||||||
public static final String GEANTYREF = "1.3.13";
|
public static final String GEANTYREF = "{geantyref}";
|
||||||
}
|
}
|
||||||
|
42
gradle/libs.versions.toml
Normal file
42
gradle/libs.versions.toml
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
metadata.format.version = "1.1"
|
||||||
|
|
||||||
|
[versions]
|
||||||
|
|
||||||
|
velocity = "3.2.0-SNAPSHOT"
|
||||||
|
paper = "1.19.3-R0.1-SNAPSHOT"
|
||||||
|
miniplaceholders = "1.3.1"
|
||||||
|
fastlogin = "1.12-SNAPSHOT"
|
||||||
|
authme = "5.6.0-SNAPSHOT"
|
||||||
|
libby = "1.1.5"
|
||||||
|
pluginyml = "0.5.2"
|
||||||
|
bstats = "3.0.0"
|
||||||
|
shadow = "7.1.2"
|
||||||
|
configurate = "4.1.2"
|
||||||
|
adventure = "4.12.0"
|
||||||
|
blossom = "1.3.1"
|
||||||
|
geantyref = "1.3.13"
|
||||||
|
|
||||||
|
[libraries]
|
||||||
|
|
||||||
|
adventure = { group = "net.kyori", name = "adventure-api", version.ref = "adventure" }
|
||||||
|
|
||||||
|
paper = { group = "io.papermc.paper", name = "paper-api", version.ref = "paper" }
|
||||||
|
velocity = { group = "com.velocitypowered", name = "velocity-api", version.ref = "velocity" }
|
||||||
|
authme = { module = "fr.xephi:authme", version.ref = "authme" }
|
||||||
|
|
||||||
|
libby-core = { group = "net.byteflux", name = "libby-core", version.ref = "libby" }
|
||||||
|
libby-bukkit = { group = "net.byteflux", name = "libby-bukkit", version.ref = "libby" }
|
||||||
|
libby-velocity = { group = "net.byteflux", name = "libby-velocity", version.ref = "libby" }
|
||||||
|
|
||||||
|
miniplaceholders = { group = "com.github.4drian3d", name = "MiniPlaceholders", version.ref = "miniplaceholders" }
|
||||||
|
|
||||||
|
fastlogin-velocity = { group = "com.github.games647", name = "fastlogin.velocity", version.ref = "fastlogin" }
|
||||||
|
bstats-velocity = { group = "org.bstats", name = "bstats-velocity", version.ref = "bstats" }
|
||||||
|
|
||||||
|
configurate-hocon = { group = "org.spongepowered", name = "configurate-hocon", version.ref = "configurate" }
|
||||||
|
|
||||||
|
[plugins]
|
||||||
|
|
||||||
|
pluginyml-bukkit = { id = "net.minecrell.plugin-yml.bukkit", version.ref = "pluginyml" }
|
||||||
|
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }
|
||||||
|
blossom = { id = "net.kyori.blossom", version.ref = "blossom" }
|
@ -1,6 +1,6 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("net.minecrell.plugin-yml.bukkit") version "0.5.2"
|
alias(libs.plugins.pluginyml.bukkit)
|
||||||
id("com.github.johnrengelman.shadow") version "7.1.2"
|
alias(libs.plugins.shadow)
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
@ -12,10 +12,10 @@ repositories {
|
|||||||
dependencies {
|
dependencies {
|
||||||
compileOnly(project(":authmevelocity-common"))
|
compileOnly(project(":authmevelocity-common"))
|
||||||
compileOnly(project(":authmevelocity-api-paper"))
|
compileOnly(project(":authmevelocity-api-paper"))
|
||||||
compileOnly("io.papermc.paper:paper-api:1.19.3-R0.1-SNAPSHOT")
|
compileOnly(libs.paper)
|
||||||
compileOnly("fr.xephi:authme:5.6.0-SNAPSHOT")
|
compileOnly(libs.authme)
|
||||||
compileOnly("com.github.4drian3d:MiniPlaceholders:1.3.1")
|
compileOnly(libs.miniplaceholders)
|
||||||
shadow("net.byteflux:libby-bukkit:1.1.5")
|
shadow(libs.libby.bukkit)
|
||||||
}
|
}
|
||||||
|
|
||||||
bukkit {
|
bukkit {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("com.github.johnrengelman.shadow") version "7.1.2"
|
alias(libs.plugins.shadow)
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
@ -11,12 +11,12 @@ repositories {
|
|||||||
dependencies {
|
dependencies {
|
||||||
compileOnly(project(":authmevelocity-common"))
|
compileOnly(project(":authmevelocity-common"))
|
||||||
compileOnly(project(":authmevelocity-api-velocity"))
|
compileOnly(project(":authmevelocity-api-velocity"))
|
||||||
compileOnly("com.velocitypowered:velocity-api:3.1.2-SNAPSHOT")
|
compileOnly(libs.velocity)
|
||||||
compileOnly("com.github.4drian3d:MiniPlaceholders:1.3.1")
|
compileOnly(libs.miniplaceholders)
|
||||||
compileOnly("com.github.games647:fastlogin.velocity:1.12-SNAPSHOT")
|
compileOnly(libs.fastlogin.velocity)
|
||||||
shadow("net.byteflux:libby-velocity:1.1.5")
|
shadow(libs.libby.velocity)
|
||||||
shadow("org.bstats:bstats-velocity:3.0.0")
|
shadow(libs.bstats.velocity)
|
||||||
annotationProcessor("com.velocitypowered:velocity-api:3.1.2-SNAPSHOT")
|
annotationProcessor(libs.velocity)
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user