mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
* Add support for H2, bundle Maria driver, bump fabric adventure * Bundle and download H2 drivers * Fixup H2 schema, add indexes to DBs, add maria-specific schema * docs: Add database type documentation * Check plugin isn't disabled before task schedule, close #463 * Bump Annotaml to 2.0.4 * docs: Mention Maria in README and Setup
78 lines
3.0 KiB
Groovy
78 lines
3.0 KiB
Groovy
import org.spongepowered.gradle.plugin.config.PluginLoaders
|
|
import org.spongepowered.plugin.metadata.model.PluginDependency
|
|
|
|
plugins {
|
|
id 'org.spongepowered.gradle.plugin' version '2.1.1'
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(path: ':common')
|
|
|
|
implementation 'org.bstats:bstats-sponge:3.0.2'
|
|
implementation "redis.clients:jedis:$jedis_version"
|
|
implementation "com.mysql:mysql-connector-j:$mysql_driver_version"
|
|
implementation "org.mariadb.jdbc:mariadb-java-client:$mariadb_driver_version"
|
|
implementation "org.xerial:sqlite-jdbc:$sqlite_driver_version"
|
|
implementation "com.h2database:h2:$h2_driver_version"
|
|
}
|
|
|
|
sponge {
|
|
apiVersion("8.1.0")
|
|
loader {
|
|
name(PluginLoaders.JAVA_PLAIN)
|
|
version("1.0")
|
|
}
|
|
license("Apache-2.0")
|
|
plugin("huskhomes") {
|
|
displayName("HuskHomes")
|
|
version(project.version.toString())
|
|
entrypoint("net.william278.huskhomes.SpongeHuskHomes")
|
|
description(project.description.toString())
|
|
links {
|
|
homepage("https://william278.net/project/huskhomes")
|
|
source("https://github.com/WiIIiam278/HuskHomes")
|
|
issues("https://github.com/WiIIiam278/HuskHomes/issues")
|
|
}
|
|
contributor("William278") {
|
|
description("Author")
|
|
}
|
|
dependency("spongeapi") {
|
|
loadOrder(PluginDependency.LoadOrder.AFTER)
|
|
optional(false)
|
|
}
|
|
dependency("bluemap") {
|
|
loadOrder(PluginDependency.LoadOrder.AFTER)
|
|
optional(true)
|
|
version("3.4")
|
|
}
|
|
dependency("plan") {
|
|
loadOrder(PluginDependency.LoadOrder.AFTER)
|
|
optional(true)
|
|
version("5.4")
|
|
}
|
|
}
|
|
}
|
|
|
|
shadowJar {
|
|
destinationDirectory.set(file("$rootDir/target/"))
|
|
archiveClassifier.set('')
|
|
|
|
exclude('org.spongepowered:.*')
|
|
exclude('net.kyori:.*')
|
|
|
|
relocate 'org.apache.commons.io', 'net.william278.huskhomes.libraries.commons.io'
|
|
relocate 'org.apache.commons.text', 'net.william278.huskhomes.libraries.commons.text'
|
|
relocate 'org.apache.commons.lang3', 'net.william278.huskhomes.libraries.commons.lang3'
|
|
relocate 'de.themoep', 'net.william278.huskhomes.libraries'
|
|
relocate 'org.jetbrains', 'net.william278.huskhomes.libraries'
|
|
relocate 'org.intellij', 'net.william278.huskhomes.libraries'
|
|
relocate 'com.zaxxer', 'net.william278.huskhomes.libraries'
|
|
relocate 'net.william278.annotaml', 'net.william278.huskhomes.libraries.annotaml'
|
|
relocate 'net.william278.paginedown', 'net.william278.huskhomes.libraries.paginedown'
|
|
relocate 'net.william278.desertwell', 'net.william278.huskhomes.libraries.desertwell'
|
|
relocate 'org.json', 'net.william278.huskhomes.libraries.json'
|
|
relocate 'dev.dejvokep.boostedyaml', 'net.william278.huskhomes.libraries.boostedyaml'
|
|
relocate 'org.yaml.snakeyaml', 'net.william278.huskhomes.libraries.snakeyaml'
|
|
relocate 'com.google.gson', 'net.william278.huskhomes.libraries.gson'
|
|
relocate 'org.bstats', 'net.william278.huskhomes.libraries.bstats'
|
|
} |