Move dependencies to gradle version catalog and clean up buildscripts
This commit is contained in:
@@ -10,45 +10,32 @@ java {
|
||||
sourceSets["main"].java {
|
||||
srcDir("src/ap/java")
|
||||
}
|
||||
|
||||
|
||||
sourceSets["main"].resources {
|
||||
srcDir("src/ap/resources")
|
||||
}
|
||||
}
|
||||
|
||||
val gsonVersion: String by project.extra
|
||||
val guiceVersion: String by project.extra
|
||||
val guavaVersion: String by project.extra
|
||||
val adventureVersion: String by project.extra
|
||||
val slf4jVersion: String by project.extra
|
||||
val checkerFrameworkVersion: String by project.extra
|
||||
val configurateVersion: String by project.extra
|
||||
val caffeineVersion: String by project.extra
|
||||
|
||||
dependencies {
|
||||
api("com.google.code.gson:gson:$gsonVersion")
|
||||
api("com.google.guava:guava:$guavaVersion")
|
||||
api(libs.gson)
|
||||
api(libs.guava)
|
||||
|
||||
// DEPRECATED: Will be removed in Velocity Polymer
|
||||
api("com.moandjiezana.toml:toml4j:0.7.2")
|
||||
|
||||
api(platform("net.kyori:adventure-bom:${adventureVersion}"))
|
||||
api(platform(libs.adventure.bom))
|
||||
api("net.kyori:adventure-api")
|
||||
api("net.kyori:adventure-text-serializer-gson")
|
||||
api("net.kyori:adventure-text-serializer-legacy")
|
||||
api("net.kyori:adventure-text-serializer-plain")
|
||||
api("net.kyori:adventure-text-minimessage")
|
||||
|
||||
api("org.slf4j:slf4j-api:$slf4jVersion")
|
||||
api("com.google.inject:guice:$guiceVersion")
|
||||
api("org.checkerframework:checker-qual:${checkerFrameworkVersion}")
|
||||
api("com.velocitypowered:velocity-brigadier:1.0.0-SNAPSHOT")
|
||||
|
||||
api("org.spongepowered:configurate-hocon:${configurateVersion}")
|
||||
api("org.spongepowered:configurate-yaml:${configurateVersion}")
|
||||
api("org.spongepowered:configurate-gson:${configurateVersion}")
|
||||
|
||||
api("com.github.ben-manes.caffeine:caffeine:$caffeineVersion")
|
||||
api(libs.slf4j)
|
||||
api(libs.guice)
|
||||
api(libs.checker.qual)
|
||||
api(libs.brigadier)
|
||||
api(libs.bundles.configurate)
|
||||
api(libs.caffeine)
|
||||
}
|
||||
|
||||
tasks {
|
||||
@@ -65,12 +52,12 @@ tasks {
|
||||
o.source = "8"
|
||||
|
||||
o.links(
|
||||
"https://www.slf4j.org/apidocs/",
|
||||
"https://guava.dev/releases/$guavaVersion/api/docs/",
|
||||
"https://google.github.io/guice/api-docs/$guiceVersion/javadoc/",
|
||||
"https://docs.oracle.com/en/java/javase/11/docs/api/",
|
||||
"https://jd.advntr.dev/api/$adventureVersion/",
|
||||
"https://javadoc.io/doc/com.github.ben-manes.caffeine/caffeine"
|
||||
"https://www.slf4j.org/apidocs/",
|
||||
"https://guava.dev/releases/${libs.guava.get().version}/api/docs/",
|
||||
"https://google.github.io/guice/api-docs/${libs.guice.get().version}/javadoc/",
|
||||
"https://docs.oracle.com/en/java/javase/11/docs/api/",
|
||||
"https://jd.advntr.dev/api/${libs.adventure.bom.get().version}/",
|
||||
"https://javadoc.io/doc/com.github.ben-manes.caffeine/caffeine"
|
||||
)
|
||||
|
||||
// Disable the crazy super-strict doclint tool in Java 8
|
||||
|
Reference in New Issue
Block a user