[Git][java-team/gradle][emorrp1] allow plugins to have no maven POM for bootstrap

emorrp1 (@emorrp1) gitlab at salsa.debian.org
Sat Aug 27 22:15:12 BST 2022



emorrp1 pushed to branch emorrp1 at Debian Java Maintainers / gradle


Commits:
2f261b49 by Phil Morrell at 2022-08-27T22:13:30+01:00
allow plugins to have no maven POM for bootstrap

The bootstrap .deb only contains the jars, making --offline builds fail
to resolve the kotlin-dsl plugin, as per release notes

- Plugin Repositories (could not resolve plugin artifact 'org.gradle.kotlin.kotlin-dsl:org.gradle.kotlin.kotlin-dsl.gradle.plugin:1.3.5')

> With this new behavior, if a plugin or a transitive dependency of a
> plugin found in the gradlePluginPortal() repository has no Maven POM
> it will fail to resolve.
https://docs.gradle.org/6.4.1/userguide/upgrading_version_4.html#rel5.0:gradle_plugin_portal_metadata

- - - - -


2 changed files:

- + debian/patches/gradle_plugin_portal_metadata.patch
- debian/patches/series


Changes:

=====================================
debian/patches/gradle_plugin_portal_metadata.patch
=====================================
@@ -0,0 +1,26 @@
+From: Phil Morrell <debian at emorrp1.name>
+Date: Sat, 27 Aug 2022 21:42:42 +0100
+Subject: gradle_plugin_portal_metadata
+
+---
+ buildSrc/settings.gradle.kts | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/buildSrc/settings.gradle.kts b/buildSrc/settings.gradle.kts
+index 2882edf..96315e1 100644
+--- a/buildSrc/settings.gradle.kts
++++ b/buildSrc/settings.gradle.kts
+@@ -20,7 +20,12 @@ pluginManagement {
+             name = "kotlin-eap"
+             url = uri("https://dl.bintray.com/kotlin/kotlin-eap")
+         }
+-        gradlePluginPortal()
++        gradlePluginPortal().apply {
++            (this as MavenArtifactRepository).metadataSources {
++                mavenPom()
++                artifact()
++            }
++        }
+     }
+ }
+ 


=====================================
debian/patches/series
=====================================
@@ -14,3 +14,4 @@ remove-enterprise-plugin.patch
 match-plugins-1.3.6.jar.patch
 ant.patch
 use-local-artifacts.patch
+gradle_plugin_portal_metadata.patch



View it on GitLab: https://salsa.debian.org/java-team/gradle/-/commit/2f261b4995046fdb70f113c5f5d71ebeb47ddbd7

-- 
View it on GitLab: https://salsa.debian.org/java-team/gradle/-/commit/2f261b4995046fdb70f113c5f5d71ebeb47ddbd7
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20220827/33770038/attachment.htm>


More information about the pkg-java-commits mailing list