Skip to content

Commit

Permalink
chore: move modules & fix build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Citymonstret committed Jan 14, 2024
1 parent 59993b4 commit 2396266
Show file tree
Hide file tree
Showing 27 changed files with 34 additions and 20 deletions.
9 changes: 0 additions & 9 deletions cloud-discord/cloud-javacord/build.gradle.kts

This file was deleted.

9 changes: 0 additions & 9 deletions cloud-discord/cloud-jda/build.gradle.kts

This file was deleted.

11 changes: 11 additions & 0 deletions cloud-javacord/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
plugins {
id("cloud-discord.base-conventions")
id("cloud-discord.publishing-conventions")
}

version = "2.0.0-dev"

dependencies {
api(libs.cloud.core)
implementation(libs.javacord)
}
11 changes: 11 additions & 0 deletions cloud-jda/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
plugins {
id("cloud-discord.base-conventions")
id("cloud-discord.publishing-conventions")
}

version = "2.0.0-dev"

dependencies {
api(libs.cloud.core)
compileOnly(libs.jda)
}
2 changes: 1 addition & 1 deletion cloud-jda5/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ plugins {

dependencies {
api(projects.cloudDiscordCommon)
implementation(libs.jda)
implementation(libs.jda5)
}
6 changes: 5 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ cloud = "2.0.0-SNAPSHOT"

# External
immutables = "2.10.0"
jda = "5.0.0-beta.19"
javacord = "3.1.1"
jda = "4.2.1_257"
jda5 = "5.0.0-beta.19"

# Test
jupiterEngine = "5.10.1"
Expand All @@ -32,7 +34,9 @@ cloud-annotations = { group = "cloud.commandframework", name = "cloud-annotation

# External
immutables = { group = "org.immutables", name = "value", version.ref = "immutables" }
javacord = { group = "org.javacord", name = "javacord", version.ref = "javacord" }
jda = { group = "net.dv8tion", name = "JDA", version.ref = "jda" }
jda5 = { group = "net.dv8tion", name = "JDA", version.ref = "jda5" }

# Test
jupiter-engine = { group = "org.junit.jupiter", name = "junit-jupiter-engine", version.ref = "jupiterEngine" }
Expand Down
6 changes: 6 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,16 @@ dependencyResolutionManagement {
snapshotsOnly()
}
}
maven("https://m2.dv8tion.net/releases") {
name = "dv8tion"
mavenContent { releasesOnly() }
}
}
}

rootProject.name = "cloud-discord"

include(":cloud-discord-common")
include(":cloud-javacord")
include(":cloud-jda")
include(":cloud-jda5")

0 comments on commit 2396266

Please sign in to comment.