It is a bit of a funky invocation, and our config makes it a little stranger yet. I think you want
./gradlew -Ppublishing -PnoSigning publishMavenJavaPublicationToMavenLocal -Ppublishing is in our config to enable/disable the publishing plugin -PnoSigning turns off signing which is on by default but you probably don't want The rest is how the publishing plugin does its thing, a concatenation of: publish + <what to publish> + Publication To + <where to publish> I didn't actually realize the `gradle install` did anything. But I think it is worth making it so `gradle install` does exactly the above. Kenn On Thu, Feb 7, 2019 at 6:06 AM Mike Pedersen <m...@mikepedersen.dk> wrote: > Hi all. I have made some changes to Beam's Java SDK locally and would like > to install that version into my local repository. Some of the modules' > install tasks fail, so I disabled those, eventually leading me to a install > command like this: > > ./gradlew install \ > -x :beam-sdks-java-maven-archetypes-examples:install \ > -x :beam-runners-reference-job-server:install \ > -x :beam-runners-flink-1.6-job-server:install \ > -x :beam-runners-flink-1.7-job-server:install \ > -x :beam-runners-flink_2.11-job-server:install > > This command completes without error, but seems to only install unshaded > dependencies unlike the shaded jars in the maven repository: > > $ ls ~/.m2/repository/org/apache/beam/beam-sdks-java-core/2.9.0-SNAPSHOT/ > beam-sdks-java-core-2.9.0-SNAPSHOT-tests-unshaded.jar > beam-sdks-java-core-2.9.0-SNAPSHOT-unshaded.jar > beam-sdks-java-core-2.9.0-SNAPSHOT.pom > maven-metadata-local.xml > > Whereas the ones from the maven repository is like this instead (2.8.0, > but I assume it should be the same for 2.9.0): > > $ ls ~/.m2/repository/org/apache/beam/beam-sdks-java-core/2.8.0/ > _remote.repositories > beam-sdks-java-core-2.8.0.jar > beam-sdks-java-core-2.8.0.jar.sha1 > beam-sdks-java-core-2.8.0.pom > beam-sdks-java-core-2.8.0.pom.sha1 > > How do I get gradle to install the shaded jars like the ones found in the > Beam's maven repository? > > Thanks in advance, > Mike >