From 82b9b27f168461b1a6b0173f0df07f25615a7f4d Mon Sep 17 00:00:00 2001 From: Mirko Caserta Date: Sat, 15 May 2021 09:38:49 +0200 Subject: [PATCH] Add required maven-publish plugin to examples The `maven-publish` plugin is required for the `publishing` blocks to work. --- .../publishing-java-packages-with-gradle.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/content/actions/guides/publishing-java-packages-with-gradle.md b/content/actions/guides/publishing-java-packages-with-gradle.md index bc0ee9ab83..39aca21612 100644 --- a/content/actions/guides/publishing-java-packages-with-gradle.md +++ b/content/actions/guides/publishing-java-packages-with-gradle.md @@ -51,6 +51,11 @@ You can define a new Maven repository in the publishing block of your _build.gra {% raw %} ```groovy{:copy} +plugins { + ... + id 'maven-publish' +} + publishing { ... @@ -114,6 +119,11 @@ For example, if your organization is named "octocat" and your repository is name {% raw %} ```groovy{:copy} +plugins { + ... + id 'maven-publish' +} + publishing { ... @@ -173,6 +183,11 @@ If your organization is named "octocat" and your repository is named "hello-worl {% raw %} ```groovy{:copy} +plugins { + ... + id 'maven-publish' +} + publishing { ...