Port to JDA

This commit is contained in:
Jonas_Jones 2023-11-14 18:50:24 +01:00
parent da3e6ad947
commit a74e5bd4b0
6 changed files with 120 additions and 67 deletions

View file

@ -1,8 +1,11 @@
plugins {
id 'fabric-loom' version '1.4-SNAPSHOT'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
version = project.mod_version
group = project.maven_group
@ -16,6 +19,7 @@ repositories {
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
// for more information about repositories.
mavenCentral()
}
loom {
@ -46,7 +50,25 @@ 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.dev.impl.vendor"
}
remapJar {
from('LICENSE') // Include license
inputFile.set shadowJar.archiveFile
dependsOn shadowJar
}
processResources {