[RESOLVED] Deploy EAR via MavenPublication

I have a Gradle project in which there are a few sub-projects which gets combined into an ear. I’m trying to figure out how to attach the ear to the publishToMavenLocal task.

I tried to find the component like web for WAR files and java for JAR files but I couldn’t find the right mix.

This is what I have for my publishing block:

publishing {
  publications {
    mavenJava(MavenPublication) {
      from components.java
    }
  }
}

I was able to resolve this. The end result was comprised of the following segments:

apply plugin: 'ear'
...
artifacts {
  ear
}
...
publishing {
  publications {
    mavenJava(MavenPublication) {
      artifact ear
    }
  }
}