From 4a0a4e5a590d9f190cbbc581586e334335dd8abe Mon Sep 17 00:00:00 2001 From: Andre Kurait Date: Tue, 9 Apr 2024 18:05:21 -0500 Subject: [PATCH] Add Artifacts in format for maven central Signed-off-by: Andre Kurait --- TrafficCapture/build.gradle | 17 +++++++++++++++++ .../NettyJsonContentStreamToByteBufHandler.java | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/TrafficCapture/build.gradle b/TrafficCapture/build.gradle index bc38b456d..506d9a33d 100644 --- a/TrafficCapture/build.gradle +++ b/TrafficCapture/build.gradle @@ -12,6 +12,15 @@ allprojects { subprojects { apply plugin: 'java' apply plugin: 'maven-publish' + task javadocJar(type: Jar, dependsOn: javadoc) { + archiveClassifier.set('javadoc') + from javadoc.destinationDir + } + task sourcesJar(type: Jar) { + archiveClassifier.set('sources') + from sourceSets.main.allSource + duplicatesStrategy = DuplicatesStrategy.EXCLUDE + } def excludedProjects = [ 'buildSrc', 'dockerSolution', @@ -21,6 +30,9 @@ subprojects { publications { mavenJava(MavenPublication) { from components.java + artifact javadocJar + artifact sourcesJar + group = 'org.opensearch.migrations.trafficcapture' version = '0.1.0' @@ -48,6 +60,11 @@ subprojects { url = "https://github.com/opensearch-project/opensearch-migrations" } } + scm { + connection = "scm:git@github.com:opensearch-project/opensearch-migrations.git" + developerConnection = "scm:git@github.com:opensearch-project/opensearch-migrations.git" + url = "git@github.com:opensearch-project/opensearch-migrations.git" + } } // Suppress POM metadata warnings for test fixtures diff --git a/TrafficCapture/trafficReplayer/src/main/java/org/opensearch/migrations/replay/datahandlers/http/NettyJsonContentStreamToByteBufHandler.java b/TrafficCapture/trafficReplayer/src/main/java/org/opensearch/migrations/replay/datahandlers/http/NettyJsonContentStreamToByteBufHandler.java index b81453deb..185a91f74 100644 --- a/TrafficCapture/trafficReplayer/src/main/java/org/opensearch/migrations/replay/datahandlers/http/NettyJsonContentStreamToByteBufHandler.java +++ b/TrafficCapture/trafficReplayer/src/main/java/org/opensearch/migrations/replay/datahandlers/http/NettyJsonContentStreamToByteBufHandler.java @@ -25,7 +25,7 @@ * responsibility to serialize that for the final HTTP Request. * * Notice that this class will emit ByteBufs and the next handler in the pipeline, - * @NettyJsonToByteBufHandler will simply pass those ByteBufs through, while repackaging HttpContent + * NettyJsonToByteBufHandler will simply pass those ByteBufs through, while repackaging HttpContent * messages, seemingly similar to what this class does! However, these two handlers have slightly * calling contexts. This handler will only be utilized when there needed to be a material change * on the incoming HttpContent objects from the original request. The next handler will be called