Hi Beam devs,
We have a couple of maven projects (teleport and performance test utilties)
that depend on beam. We are also working to improve the spanner io
connector performance in beam. Today, it's quite painful to make local beam
changes and then use it in our performance tests due to the maven project
expecting the jars to be in the .m2 directory hierarchy.

I discovered there is a plugin 'maven-publish' which solves this problem.
https://docs.gradle.org/current/userguide/publishing_maven.html

It requires applying this plugin to the top level build.gradle file as in
the diff below. It provides a PublishToMavenLocal task that copies the jars
to the .m2/... dir.

diff --git a/build.gradle b/build.gradle
index ba30ee92c9..faf35e5f69 100644
--- a/build.gradle
+++ b/build.gradle
@@ -254,3 +254,5 @@ release {
     requireBranch = 'release-.*|master'
   }
 }
+
+apply plugin: 'maven-publish'

Is this acceptable? If so, I would be happy to submit a patch.

Thanks,
Nithin.

Reply via email to