Skip to content

Commit

Permalink
Include JDA on fabric and forge
Browse files Browse the repository at this point in the history
  • Loading branch information
Erdragh committed Nov 29, 2023
1 parent 46d311c commit 3595f3e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
17 changes: 12 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ subprojects {
}
}

// Bot dependencies
val jdaVersion: String by project
val exposedVersion: String by project
val sqliteJDBCVersion: String by project

dependencies {
// Minecraft Mod dependencies
"minecraft"("::$minecraftVersion")
Expand All @@ -58,11 +63,6 @@ subprojects {
parchment(create(group = "org.parchmentmc.data", name = "parchment-$minecraftVersion", version = parchmentVersion))
})

// Bot dependencies
val jdaVersion: String by project
val exposedVersion: String by project
val sqliteJDBCVersion: String by project

implementation("net.dv8tion:JDA:$jdaVersion") {
exclude(module = "opus-java")
exclude(group = "org.jetbrains.kotlin")
Expand Down Expand Up @@ -114,6 +114,13 @@ subprojects {
isCanBeResolved = true
}

dependencies {
"include"("net.dv8tion:JDA:$jdaVersion") {
exclude(module = "opus-java")
exclude(group = "org.jetbrains.kotlin")
}
}

tasks {
"shadowJar"(ShadowJar::class) {
archiveClassifier.set("dev-shadow")
Expand Down
5 changes: 0 additions & 5 deletions forge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,4 @@ dependencies {
exclude(module = "opus-java")
exclude(group = "org.jetbrains.kotlin")
}

include("net.dv8tion:JDA:$jdaVersion") {
exclude(module = "opus-java")
exclude(group = "org.jetbrains.kotlin")
}
}

0 comments on commit 3595f3e

Please sign in to comment.