Hi,

Is there a way to detect during the build of a plugin if it uses any 
internal/incubating Gradle APIs (any maybe fail the build if that’s the case)?


I’m thinking about something like this:


    $ gradle checkGradleApis
    :checkGradleApis
    in com.example.SomeClass(SomeClass.java:14): Incubating API used
    in com.example.SomeClass(SomeClass.java:18): Internal API used
    
    BUILD FAILED


This would be very useful to check plugins we would like to adopt in our 
builds, so we could tell beforehand if they are expected to break when we have 
to upgrade to a new minor Gradle version.


Thanks,
Lorant
— 
Lóránt

Reply via email to