Printing plugin extension

Hi,

I am applying spotless plugin and configuring it like this
spotless {
java {
googleJavaFormat(‘1.7’)
targetExclude ‘build/**’
}
}

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

I really appreciate your help with it