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
}
}
}