From 6d9261d238032dbf2d56d8b18bdbf1296bdcec76 Mon Sep 17 00:00:00 2001 From: Andre Kurait Date: Fri, 23 Feb 2024 17:55:41 -0600 Subject: [PATCH] Add support for textFixtures imports with maven local publishing Signed-off-by: Andre Kurait --- TrafficCapture/README.md | 7 +++++++ TrafficCapture/build.gradle | 6 +----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/TrafficCapture/README.md b/TrafficCapture/README.md index e51026746..8d7c81799 100644 --- a/TrafficCapture/README.md +++ b/TrafficCapture/README.md @@ -172,7 +172,14 @@ jsonMessageTransformers nettyWireLogging openSearch23PlusTargetTransformerProvider replayerPlugins +testUtilities trafficCaptureProxyServer trafficCaptureProxyServerTest trafficReplayer +``` + +To include a testFixture dependency, define the import like + +```groovy +testImplementation testFixtures('org.opensearch.migrations.trafficcapture:trafficReplayer:0.1.0-SNAPSHOT') ``` \ No newline at end of file diff --git a/TrafficCapture/build.gradle b/TrafficCapture/build.gradle index 223230055..dba36c155 100644 --- a/TrafficCapture/build.gradle +++ b/TrafficCapture/build.gradle @@ -15,18 +15,14 @@ subprojects { def excludedProjects = [ 'buildSrc', 'dockerSolution', - // TODO: Get testFixtures exported to Maven - 'testUtilities', ] if (!(project.name in excludedProjects)) { publishing { publications { mavenJava(MavenPublication) { - artifactId = project.name - from components.java - groupId = 'org.opensearch.migrations.trafficcapture' + group = 'org.opensearch.migrations.trafficcapture' version = '0.1.0-SNAPSHOT' // Suppress POM metadata warnings for test fixtures