Need to capture activity of the UploadArchive task

I have a scenario where I need to capture below details in the init.gradle file.

Can we get all the activity of task ?

the Inputs params for UploadArchive and publish task, which repo is the artifact getting uploaded, all the GAV details …as POM can be customize within uploadArchive task.

We have applications running v3.5 to v6.3 versions of Gradle

Can you please assist