From a978fc426c1d2c974058eac4d1521b7ffcbcfa8a Mon Sep 17 00:00:00 2001 From: Mike Cobbett <77053+techcobweb@users.noreply.github.com> Date: Thu, 4 Apr 2024 11:16:17 +0100 Subject: [PATCH] gradle templates should publish test catalog to maven repo Signed-off-by: Mike Cobbett <77053+techcobweb@users.noreply.github.com> --- .../parent-project/obr-project/build.gradle.template | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkg/embedded/templates/projectCreate/parent-project/obr-project/build.gradle.template b/pkg/embedded/templates/projectCreate/parent-project/obr-project/build.gradle.template index 3175cefd..aad80548 100644 --- a/pkg/embedded/templates/projectCreate/parent-project/obr-project/build.gradle.template +++ b/pkg/embedded/templates/projectCreate/parent-project/obr-project/build.gradle.template @@ -18,10 +18,8 @@ dependencies { {{- end }} } +def testcatalog = file('build/testcatalog.json') def obrFile = file('build/galasa.obr') -artifacts { - archives obrFile -} // Tell gradle to publish the built OBR as a maven artifact on the // local maven repository. @@ -29,6 +27,10 @@ publishing { publications { maven(MavenPublication) { artifact obrFile + artifact (testcatalog) { + classifier "testcatalog" + extension "json" + } } } }