mirror of
https://github.com/apple/pkl.git
synced 2026-04-25 01:38:34 +02:00
Fix build issue where test fixtures weren't generated (#327)
Make sure that declaring a dependency on project `pkl-commons-test` suffices to have its test fixtures generated. This fix should work reliably. However, there may be a more idiomatic way to achieve the same result.
This commit is contained in:
@@ -24,7 +24,8 @@ dependencies {
|
|||||||
*/
|
*/
|
||||||
val createTestPackages by tasks.registering
|
val createTestPackages by tasks.registering
|
||||||
|
|
||||||
tasks.test {
|
// make sure that declaring a dependency on this project suffices to have test fixtures generated
|
||||||
|
tasks.processResources {
|
||||||
dependsOn(createTestPackages)
|
dependsOn(createTestPackages)
|
||||||
dependsOn(exportCerts)
|
dependsOn(exportCerts)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user