mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 14:38:53 +00:00
Add Fabric 1.19.4 server-side mod support (#348)
This commit is contained in:
1 parent
1bdf21dd7d
commit
29e0ed6ef4
181 files changed
+5566
-67
No files matched your search
@@ -0,0 +1,69 @@
|
||||
plugins {
|
||||
id 'fabric-loom' version '1.1-SNAPSHOT'
|
||||
}
|
||||
|
||||
apply plugin: 'fabric-loom'
|
||||
loom.serverOnlyMinecraftJar()
|
||||
|
||||
dependencies {
|
||||
minecraft 'com.mojang:minecraft:1.19.4'
|
||||
mappings 'net.fabricmc:yarn:1.19.4+build.2'
|
||||
modImplementation 'net.fabricmc:fabric-loader:0.14.19'
|
||||
|
||||
// Fabric API modules
|
||||
Set<String> fabricApiModules = [
|
||||
'fabric-api-base',
|
||||
'fabric-lifecycle-events-v1',
|
||||
'fabric-entity-events-v1',
|
||||
'fabric-command-api-v2',
|
||||
'fabric-networking-api-v1'
|
||||
]
|
||||
fabricApiModules.forEach {
|
||||
modImplementation(fabricApi.module(it, '0.77.0+1.19.4'))
|
||||
}
|
||||
modImplementation include('net.kyori:adventure-platform-fabric:5.8.0')
|
||||
modImplementation include('me.lucko:fabric-permissions-api:0.2-SNAPSHOT')
|
||||
|
||||
implementation include('redis.clients:jedis:' + jedis_version)
|
||||
implementation include('com.mysql:mysql-connector-j:' + mysql_driver_version)
|
||||
implementation include('org.xerial:sqlite-jdbc:' + sqlite_driver_version)
|
||||
|
||||
compileOnly 'org.jetbrains:annotations:24.0.1'
|
||||
|
||||
shadow project(path: ":common")
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
configurations = [project.configurations.shadow]
|
||||
destinationDirectory.set(file("$projectDir/build/libs"))
|
||||
|
||||
exclude('net.fabricmc:.*')
|
||||
exclude('net.kyori:.*')
|
||||
exclude '/mappings/*'
|
||||
|
||||
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 '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'
|
||||
}
|
||||
|
||||
remapJar {
|
||||
dependsOn tasks.shadowJar
|
||||
mustRunAfter tasks.shadowJar
|
||||
inputFile = shadowJar.archiveFile.get()
|
||||
addNestedDependencies = true
|
||||
|
||||
destinationDirectory.set(file("$rootDir/target/"))
|
||||
archiveClassifier.set('')
|
||||
}
|
||||
|
||||
shadowJar.finalizedBy(remapJar)
|
||||
Reference in new issue
Block a user