I’ve got a multi-module project that produces two WARs and I’d like to have an integration/system test module that makes sure they play well together. The test module wouldn’t actual produce an artifact, but I would like my assembly module to be dependent upon its successful execution.
My project looks something like this:
-
Parent
-
War One
-
War Two
-
Integration Test
-
Assembly
How do I make a module dependent upon another module when the dependency doesn’t produce an artifact?
I’ve attempted the following in ‘:assembly’
configurations {
assembly
}
dependencies {
assembly module(':test')
}
task build(dependsOn: configurations.assembly) << {
println("in assembly:build")
}
But the :assembly:build is being executed before :test.