Skip to content

Commit

Permalink
Merge pull request #524 from AndreKurait/TestFixturesMaven
Browse files Browse the repository at this point in the history
Add support for textFixtures imports with maven local publishing
  • Loading branch information
AndreKurait authored Feb 27, 2024
2 parents 61902aa + 9fedef8 commit aff1b80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 7 additions & 0 deletions TrafficCapture/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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')
```
6 changes: 1 addition & 5 deletions TrafficCapture/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aff1b80

Please sign in to comment.