You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2020/10/26 19:45:00 UTC
[jira] [Comment Edited] (MNG-7005) Support Gradle style GAV form
for dependencies
[ https://issues.apache.org/jira/browse/MNG-7005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17220956#comment-17220956 ]
Michael Osipov edited comment on MNG-7005 at 10/26/20, 7:44 PM:
----------------------------------------------------------------
Supporting wildcard excludes all or nothing will not scale. People want/need to exclude selectively.
Back to the topic, even if you consider is handy, pratical, etc. this is syntactical sugar and will likely lay around for years w/o being touched. Our resources are tight.
was (Author: michael-o):
Supporting wildcard excludes all or nothing will not scale. People want/need to exclude selectively.
Back to the topic, even if you consider is handy, pratical, etc. this is syntactical sugar and will likely lay around for years w/o being touched. Are resources are tight.
> Support Gradle style GAV form for dependencies
> ----------------------------------------------
>
> Key: MNG-7005
> URL: https://issues.apache.org/jira/browse/MNG-7005
> Project: Maven
> Issue Type: Improvement
> Reporter: Chris Caspanello
> Priority: Major
>
>
> I'm currently migrating a project from Gradle to Maven. One thing that makes pom files so large is the typical 5 lines for a dependnecy. It would be nice to be able to define the dependency similar to Gradle
> Instead of :
> {code:java}
> <dependencies>
> <dependency>
> <groupId>myGroup</groupId>
> <artifactId>myArtifact</artifactId>
> <version>1.0.0-SNAPSHOT</version>
> </dependency>
> <dependency>
> <groupId>anotherGroup</groupId>
> <artifactId>anotherArtifact</artifactId>
> <version>1.0.0-SNAPSHOT</version>
> </dependency>
> </dependencies>{code}
>
>
> It would be less verbose to use a <gav> block like this:
>
> {code:java}
> <dependencies>
> <gav>myGruop:myArtifact:1.0.0-SNAPSHOT</gav>
> <gav>anotherGroup:anotherArtifact:1.0.0-SNAPSHOT</gav>
> </dependencies>
> {code}
>
> I think an improvement like this would make Maven less verbose; one of the things that is attractive about Gradle.
> I may be over simplifying this; but under the covers we'd just split the gav block on the semi colon and popoulate the existing dependency model.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)