diff --git a/ideaSupport/src/main/scala/org/jetbrains/sbtidea/Init.scala b/ideaSupport/src/main/scala/org/jetbrains/sbtidea/Init.scala index adce66c..534d164 100644 --- a/ideaSupport/src/main/scala/org/jetbrains/sbtidea/Init.scala +++ b/ideaSupport/src/main/scala/org/jetbrains/sbtidea/Init.scala @@ -127,13 +127,13 @@ trait Init { this: Keys.type => filterScalaLibraryCp(previousValue) }, packageArtifact := { - doPatchPluginXml.value - packageArtifact.value - }, + // packageMappings must complete before patching + packageArtifact dependsOn Def.sequential(packageMappings, doPatchPluginXml) + }.value, packageArtifactDynamic := { - doPatchPluginXml.value - packageArtifactDynamic.value - }, + // packageMappings must complete before patching + packageArtifactDynamic dependsOn Def.sequential(packageMappings, doPatchPluginXml) + }.value, packageArtifactZip := Def.sequential( buildIntellijOptionsIndex.toTask, doPackageArtifactZip.toTask,