MINOR: Clarify how to publish specific projects to the local repo (#11938)

The current README instruction for local publishing boils the ocean by building and installing every jar in the project with both 2.12 and 2.13. While that is some times what people want to do, they are also often trying to just build a specific jar.

Reviewers: Bill Bejeck <bbejeck@apache.org>
This commit is contained in:
John Roesler 2022-03-23 13:07:02 -05:00 committed by GitHub
parent a3adf41d8b
commit dcd09de1ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -180,8 +180,8 @@ Please note for this to work you should create/update user maven settings (typic
... ...
### Installing the jars to the local Maven repository ### ### Installing ALL the jars to the local Maven repository ###
The recommended command is: The recommended command to build for both Scala 2.12 and 2.13 is:
./gradlewAll publishToMavenLocal ./gradlewAll publishToMavenLocal
@ -189,6 +189,12 @@ For backwards compatibility, the following also works:
./gradlewAll install ./gradlewAll install
### Installing specific projects to the local Maven repository ###
./gradlew -PskipSigning :streams:publishToMavenLocal
If needed, you can specify the Scala version with `-PscalaVersion=2.13`.
### Building the test jar ### ### Building the test jar ###
./gradlew testJar ./gradlew testJar