Plugins in other .gradle files

Will it be possible to have plugins in other .gradle files not just the build.gradle i use the same plugins accross multiple projects and would like to be able to apply a .gradle file and have it be able to apply plugins?

This is already possible. You can apply plugins from a script plugin.


apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'jacoco'


apply from: plugins.gradle

I was talking about
plugins { id 'com.matthewprenger.cursegradle' version '1.0.1' id 'net.saliman.cobertura' version '2.2.5' id 'com.github.kt3k.coveralls' version '2.0.1' id "com.github.johnrengelman.shadow" version "1.2.2" }
sorry for not being specific.

No, unfortunately this cannot be done using the plugins { } syntax.

Would that have a possibility of making it into a future release of gradle?

It’s a limitation we plan to address. For now you can accomplish the same thing just using the old plugin syntax.