简体   繁体   中英

How to know which plugin is adding the “run” task in gradle

I have a gradle-based project that doesn't implement the "application" plugin, but somehow the "run" task runs perfectly when i just write on the console

./gradlew run

I've been looking among the plugins and I can't find which one is adding the "run" task.

  • Is there a way to list the tasks defined by each plugin available in my project?
  • Is is possible for a plugin being adding the task by transitively adding another plugin? How do I know which one?

Try

gradle -q tasks --all

which will show all the tasks as well as the plugin responsible for each task. This is covered in the section titled "Listing tasks" in the Gradle manual .

Are you using the spring-boot gradle plugin? If so, it imports the application plugin to provide support for the bootRun task.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM