I'm writing an Eclipse plugin and I want to use the gradle tooling api to inspect a gradle project's build script to look whether or not it has certain plugins applied.
Lets say that I have a build script that looks something like this:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.dm.gradle:gradle-bundle-plugin:0.6.2'
}
}
apply plugin: 'java'
apply plugin: 'org.dm.bundle'
repositories {
mavenCentral()
}
sourceCompatibility = 1.7
version = '1.0'
Is there a way that I can use the gradle tooling api to find out which plugins this particular gradle project was applying?
I know that you can get the list of project dependencies, but what about the buildscript{} dependencies?