Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Commit

Permalink
Fix database build dependency
Browse files Browse the repository at this point in the history
Gradle enableCustom task should depend on baseSeed task, not globalSeed task, so that it will not run the extraSeed task. Running extraSeed can cause problems when applying other seed tasks, such as demoSeed.
  • Loading branch information
chunky56 committed Mar 15, 2016
1 parent d636afc commit 6d65527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/db/build.gradle
Expand Up @@ -138,7 +138,7 @@ task globalSeed(dependsOn: [baseSeed, extraSeed]) {
description 'Runs all seed tasks that apply globally'
}

task enableCustom(type: Exec, dependsOn: globalSeed) {
task enableCustom(type: Exec, dependsOn: baseSeed) {
onlyIf { toggleOnCustom == 'true' }
description 'Runs script to enable project-specific features (if toggleOnCustom is true)'
environment("PGPASSWORD", dbPassword)
Expand Down

0 comments on commit 6d65527

Please sign in to comment.