Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 12cbcb6

Browse files
committed
Wait for pom to be generated before packaging in PomInclusionPlugin
It was configured to do packaging and pom generation simultaneously and jar packaging for plugins was sometimes faster than pom generation. This lead to failing init tests for the testall plugin, which requires the scala library, after a fresh clean.
1 parent b62f02c commit 12cbcb6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

build/src/main/scala/org/codeoverflow/chatoverflow/build/PomInclusionPlugin.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ object PomInclusionPlugin extends AutoPlugin {
2323
// Adds our custom task before the packageBin task
2424
override val projectSettings: Seq[Def.Setting[_]] =
2525
inConfig(Compile)(Seq(
26-
Compile / packageBin := {
27-
addPomToOutput.value
28-
(Compile / packageBin).value
29-
}
26+
Compile / packageBin := (Compile / packageBin).dependsOn(addPomToOutput).value
3027
))
3128

3229
// Sets default values

0 commit comments

Comments
 (0)