Skip to content

Commit

Permalink
Add gradle task listPublishedArtifacts
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Kurait <akurait@amazon.com>
  • Loading branch information
AndreKurait committed Jun 17, 2024
1 parent 3d4640b commit bc78f8f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
24 changes: 4 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,28 +104,12 @@ dependencies {
}
```

The entire list of published subprojects is
```text
captureKafkaOffloader
captureOffloader
captureProtobufs
commonDependencyVersionConstraints
coreUtilities
jsonJMESPathMessageTransformer
jsonJMESPathMessageTransformerProvider
jsonJoltMessageTransformer
jsonJoltMessageTransformerProvider
jsonMessageTransformerInterface
jsonMessageTransformers
nettyWireLogging
openSearch23PlusTargetTransformerProvider
testHelperFixtures
trafficCaptureProxyServer
trafficCaptureProxyServerTest
trafficReplayer
transformationPlugins
The entire list of published subprojects can be viewed with
```sh
./gradlew listPublishedArtifacts
```


To include a testFixture dependency, define the import like

```groovy
Expand Down
15 changes: 15 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,19 @@ subprojects {
}
}
}
}

task listPublishedArtifacts {
doLast {
subprojects.each { proj ->
def publishingExtension = proj.extensions.findByType(PublishingExtension)
if (publishingExtension) {
publishingExtension.publications.each { publication ->
if (publication instanceof MavenPublication) {
println "${publication.groupId}.${publication.artifactId}"
}
}
}
}
}
}

0 comments on commit bc78f8f

Please sign in to comment.