Printing plugin extension


I am applying spotless plugin and configuring it like this
spotless {
java {
targetExclude ‘build/**’

I am trying to understand how can I print those properties at a later stage.
I tried many options such as or project.spotless and so on and none of them are working.

I really appreciate your help with it