Port to JDA and bug fixes

This commit is contained in:
Jonas_Jones 2023-11-14 20:14:45 +01:00
parent 428e49d259
commit 3faec0166c
5 changed files with 125 additions and 82 deletions

View file

@ -1,6 +1,9 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id 'fabric-loom' version '1.4-SNAPSHOT'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
version = project.mod_version
@ -46,9 +49,28 @@ dependencies {
// These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.
// modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"
implementation 'org.javacord:javacord:3.8.0'
implementation('net.dv8tion:JDA:5.0.0-beta.17') {
exclude module: 'opus-java'
}
shadow 'net.dv8tion:JDA:5.0.0-beta.17'
}
tasks.withType(ShadowJar).configureEach {
it.minimize()
it.configurations = [project.configurations.shadow]
it.enableRelocation = true
it.relocationPrefix = "dev.jonasjones.yadacl.vendor"
}
remapJar {
from('LICENSE') // Include license
inputFile.set shadowJar.archiveFile
dependsOn shadowJar
}
processResources {
inputs.property "version", project.version