Wrong groupId for dependencies - maven plugin

Hello everyone.
Thanks in advance to take time to read this but my understanding about gradle subject is pretty low, but i am trying :smiley:

Well, i am trying to create my local repository in my machine.
I was trying to create a local repository, using the maven-publish plugin, but without success because I need to use the same name for groupID all the time and I was getting it wrong when I did.

I changed to maven plugin to generate my local repository and now I was able to build my repository.

But now I have a problem: inside the .pom file that is automatically generated, groupId is incorrect. This is because I was supposed to put the groupId was generated.


These are the projects generated and created within my local repository. These projects, in some cases, depend on another project.

<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"

As you can see, the application generated well the groupid but for the dependency, which should be equal “zeus”, it did not put what it expected.

apply plugin: 'maven'

install {
	    repositories.mavenInstaller {
	        pom.version = project.version
	        pom.artifactId = project.name
	        pom.groupId = project.parent.name

To generate my repository, I’m using this on each project, inside the build.gradle

What do I need to do to get him to get me the right group?


Is this a copying mistake? I think you want project.parent.group here.
By the way, what is the actual group ID for the dependencies?