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.

Example:

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"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>zeus</groupId>
  <artifactId>zeus-batch</artifactId>
  <version>1.1.0</version>
  <dependencies>
    <dependency>
      <groupId>pt.olimpo</groupId>
      <artifactId>zeus-core</artifactId>
      <version>1.1.0</version>
      <scope>compile</scope>
    </dependency>

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?

Thanks

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?