How to list available plugins in Gradle
There's no such task that lists all the plugins applied to project. However this method may be helpful.
project.plugins.each {
println it
}
As a complement to the accepted answer, one could also do as recommended in this answer by Peter Niederwieser
task showClasspath {
doLast {
buildscript.configurations.classpath.each { println it.name }
}
}
Which will show JAR names of the classpath dependencies, as well as the version of the jar.
The list of plugins can be found in the properties of root project, via gradle properties
.
We can parse this information from the command-line using PowerShell:
gradle properties |
Where-Object { $_ -match '(?<=^plugins: \[).*(?=\])'; } |
Out-Null;
$Matches.Values -split ", " |
ForEach-Object { ($_ -split "@")[0]; }
I ran this command on my Spring Boot project using Gradle 6.7 and Powershell 7.1.0 and got the following output:
org.gradle.api.plugins.HelpTasksPlugin
org.gradle.buildinit.plugins.BuildInitPlugin
org.gradle.buildinit.plugins.WrapperPlugin
org.springframework.boot.gradle.plugin.SpringBootPlugin
org.gradle.language.base.plugins.LifecycleBasePlugin
org.gradle.api.plugins.BasePlugin
org.gradle.api.plugins.JvmEcosystemPlugin
org.gradle.api.plugins.ReportingBasePlugin
org.gradle.api.plugins.JavaBasePlugin$Inject
org.gradle.api.plugins.JavaPlugin
org.gradle.api.plugins.JavaLibraryPlugin
org.gradle.api.distribution.plugins.DistributionPlugin
org.gradle.api.plugins.ApplicationPlugin