I am getting the following error:
$ gradle ProjectRoot:artifactoryPublish Cannot publish pom for project ':' since it does not contain the Maven plugin install task and task ':artifactoryPublish' does not specify a custom pom path. FAILURE: Could not determine which tasks to execute. * What went wrong: Project 'ProjectRoot' not found in root project ':ProjectRoot'. * Try: Run gradle tasks to get a list of available tasks. BUILD FAILED
I have a project structure where I have multiple sub projects in the modules directory. These sub projects are fully independent gradle projects. The root project exists in order to package each of the artifacts generated by the sub projects.
ProjectRoot/ build.gradle modules/ ProjectSubA/ build.gradle ProjectSubB/ build.gradle ProjectSubC/ build.gradle
All projects (root and sub projects) apply the Maven and Artifactory plugins. The issue I’m encountering is that when I execute the artifactoryPublish task, all projects’ are tasks are executed, but I only want the root project’s task to be executed. How do I specify that?