This is an automated email from the ASF dual-hosted git repository.

mdedetrich pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-grpc.git


The following commit(s) were added to refs/heads/main by this push:
     new 0bfb43a6 Update references of gradlePluginPortal to mavenCentral
0bfb43a6 is described below

commit 0bfb43a67987d9088a9aa2ef8822577c5b26a3d0
Author: Matthew de Detrich <[email protected]>
AuthorDate: Mon Aug 7 22:28:27 2023 +0200

    Update references of gradlePluginPortal to mavenCentral
---
 .github/workflows/publish-nightly.yml        |  2 +-
 README.md                                    |  8 +++++++-
 docs/src/main/paradox/buildtools/gradle.md   | 23 ++++++-----------------
 docs/src/main/paradox/release-notes/index.md |  6 ++++++
 docs/src/main/paradox/server/walkthrough.md  |  3 +--
 plugin-tester-scala/settings.gradle          |  2 +-
 6 files changed, 22 insertions(+), 22 deletions(-)

diff --git a/.github/workflows/publish-nightly.yml 
b/.github/workflows/publish-nightly.yml
index c7b37be9..3c242826 100644
--- a/.github/workflows/publish-nightly.yml
+++ b/.github/workflows/publish-nightly.yml
@@ -31,7 +31,7 @@ jobs:
           NEXUS_USER: ${{ secrets.NEXUS_USER }}
           NEXUS_PW: ${{ secrets.NEXUS_PW }}
 
-      - name: Publish Gradle Plugin to Apache Nexus Repository
+      - name: Publish Gradle Plugin
         run: cd gradle-plugin && ./gradlew publishToSonatype
         env:
           NEXUS_USER: ${{ secrets.NEXUS_USER }}
diff --git a/README.md b/README.md
index 39cfadb0..870845f5 100644
--- a/README.md
+++ b/README.md
@@ -98,7 +98,13 @@ See the note in the [Akka HTTP 
docs](https://doc.akka.io/docs/akka-http/10.1/ser
     - `mvn -Dpekko.grpc.project.version=<version> pekko-grpc:generate 
scala:compile`
 
 #### Gradle plugin
-- see [Installation 
docs](https://pekko.apache.org/docs/pekko-grpc/current/buildtools/gradle.html#installation)
+- the Gradle plugin is built using gradle
+- The gradle plugin will automatically derive the version of the artifact from 
sbt.
+  - In other words sbt is the source of truth when it comes to deriving the 
version
+- You can test the Gradle plugin by change directory into the 
`plugin-tester-java` dir
+  - `./gradlew clean test -Dpekko.grpc.project.version=<version>`
+- You can run the equivalent Scala tests by changing directory into the 
`plugin-tester-scala` dir
+  - `./gradlew clean test -Dpekko.grpc.project.version=<version>`
 
 ## License
 
diff --git a/docs/src/main/paradox/buildtools/gradle.md 
b/docs/src/main/paradox/buildtools/gradle.md
index d37f31de..7afd4d46 100644
--- a/docs/src/main/paradox/buildtools/gradle.md
+++ b/docs/src/main/paradox/buildtools/gradle.md
@@ -13,25 +13,14 @@ By default, both client and server are generated and Java 
or Scala is autodetect
 
 ### Installation
 
-**The Gradle plugin is not yet deployed to plugins.gradle.org.**
-
-For now, you will you need to build the plugin yourself and deploy to your 
local Maven repository.
-Unfortunately, the [Gradle Plugin 
Publishing](https://docs.gradle.org/current/userguide/publishing_gradle_plugins.html)
 plugin
-does not appear to support publishing to repositories that require 
authentication (e.g. Artifactory).
-
-If you check out the source code from our [git 
repo](https://github.com/apache/incubator-pekko-grpc)
-or [download](https://pekko.apache.org/download.html) a source release, you 
can change directory to the
-`gradle-plugin` directory and run this Gradle command.
-
-```shell
-./gradlew clean publishToMavenLocal
-```
-
-To consume this plugin, you will need to update the consuming project's 
`build.gradle` to include the `mavenLocal` repository.
+To consume this plugin, you will need to update the consuming project's 
`build.gradle` to include the `mavenCentral` repository.
 
 ```groovy
-repositories {
-  mavenLocal()
+pluginManagement {
+    repositories {
+        gradlePluginPortal()
+        mavenCentral()
+    }
 }
 ```
 
diff --git a/docs/src/main/paradox/release-notes/index.md 
b/docs/src/main/paradox/release-notes/index.md
index b6df8def..36639b36 100644
--- a/docs/src/main/paradox/release-notes/index.md
+++ b/docs/src/main/paradox/release-notes/index.md
@@ -24,6 +24,12 @@ We haven't had to fix any significant bugs that were in Akka 
gRPC 2.1.6.
     * `googleProtocVersion` is the version of 
[Protoc](https://grpc.io/docs/protoc-installation/) that is supported (3.20.1)
     * `googleProtobufJavaVersion` is the version of [Protobuf 
Java](https://protobuf.dev/getting-started/javatutorial/) that is supported 
(3.20.3)
     * Akka gRPC 2.1.6 equivalent has just one property, 
`googleProtobufVersion`.
+* The Pekko gRPC plugin is deployed in Maven Central unlike the Akka gRPC 
plugin which was deployed
+  in [Gradle Plugin Portal](https://plugins.gradle.org/). This means that in 
addition to changing
+  the artifact from `akka-grpc-gradle-plugin` to `pekko-grpc-gradle-plugin` 
you also need to add
+  `mavenCentral()` to the `pluginManagement`'s `repositories` entry. See
+  [Installation 
docs](https://pekko.apache.org/docs/pekko-grpc/current/buildtools/gradle.html#installation)
 for more
+  info.
 
 ### Additions
 
diff --git a/docs/src/main/paradox/server/walkthrough.md 
b/docs/src/main/paradox/server/walkthrough.md
index 709dd870..54486e0e 100644
--- a/docs/src/main/paradox/server/walkthrough.md
+++ b/docs/src/main/paradox/server/walkthrough.md
@@ -26,6 +26,7 @@ Gradle
       repositories {
         mavenLocal()
         gradlePluginPortal()
+        mavenCentral()
       }
       dependencies {
         // see https://plugins.gradle.org/plugin/org.apache.pekko.grpc.gradle
@@ -256,5 +257,3 @@ Java
 :  @@snip 
[GreeterActor.java](/plugin-tester-java/src/main/java/example/myapp/statefulhelloworld/GreeterActor.java)
 { #actor }
 
 Now the actor mailbox is used to synchronize accesses to the mutable state.
-
-
diff --git a/plugin-tester-scala/settings.gradle 
b/plugin-tester-scala/settings.gradle
index 685ec855..82f3f18b 100644
--- a/plugin-tester-scala/settings.gradle
+++ b/plugin-tester-scala/settings.gradle
@@ -18,7 +18,7 @@
 pluginManagement {
   repositories {
     mavenLocal()
-    gradlePluginPortal()
+    mavenCentral()
   }
   plugins {
     id 'org.apache.pekko.grpc.gradle' version 
"${System.getProperty('pekko.grpc.project.version')}"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to