List tasks not working with ArtifactoryPublicationsPlugin


(Gary Quinn) #1

In my gradle project, I am using the ArtifactoryPublicationsPlugin (org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1).

When I build the project, everything works. It builds, tests, publish etc.

But as soon as I try and list the tasks (./gradlew tasks) I get the following error:

Caused by: org.gradle.api.UnknownTaskException: Task with path 'generatePomFileForMavenEarPublication' not found in project ':claims-management-app'.


generatePomFileFor*Publication tasks are created dynamically unlike many other plugin tasks. I’m looking for more information on this process, but I believe this is why you are having problems accessing the task.

My guess would be that your trying to reference the “generatePom” tasks before they are getting dynamically created after the plugin loads and the project is fully configured.

(Gary Quinn) #3

Not to worry.

I removed the artifactory plugin and used maven-publish.