Skip to content

Commit

Permalink
build: fix project dependencies in dev environment (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
axieum committed Aug 3, 2022
1 parent 8114fd1 commit c343319
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,13 @@ allprojects {
}

// Nest all subproject artifacts within the main/bundle distribution
dependencies { subprojects.each { include project("${it.name}:") } }
dependencies {
subprojects.each {
implementation project(path: ":${it.name}", configuration: 'namedElements')
implementation project(path: ":${it.name}", configuration: 'shadow')
include project("${it.name}:")
}
}

// Define how artifacts are published to CurseForge (https://curseforge.com)
curseforge {
Expand Down
2 changes: 1 addition & 1 deletion minecord-chat/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Declare dependencies
dependencies {
implementation project(path: ':minecord-api', configuration: 'shadow')
implementation project(path: ':minecord-api', configuration: 'namedElements')
implementation project(path: ':minecord-api', configuration: 'shadow')
implementation shade("io.github.java-diff-utils:java-diff-utils:${project.java_diff_utils_version}")
}
2 changes: 1 addition & 1 deletion minecord-cmds/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Declare dependencies
dependencies {
implementation project(path: ':minecord-api', configuration: 'shadow')
implementation project(path: ':minecord-api', configuration: 'namedElements')
implementation project(path: ':minecord-api', configuration: 'shadow')
}
2 changes: 1 addition & 1 deletion minecord-presence/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Declare dependencies
dependencies {
implementation project(path: ':minecord-api', configuration: 'shadow')
implementation project(path: ':minecord-api', configuration: 'namedElements')
implementation project(path: ':minecord-api', configuration: 'shadow')
}

0 comments on commit c343319

Please sign in to comment.