Com.android.library api

I have general question how do I find the api for task or plugins ?

I had old build.gradle that fails with latest gradle version.

  • What went wrong: A problem occurred evaluating root project ‘jio-services-gradle’. > Failed to apply plugin [id ‘android-reporting’]

A problem occurred configuring project ‘:JioMdkInternalInterface’.

Could not find property ‘packageLibrary’ on com.android.build.gradle.internal.api.LibraryVariantImpl_Decorated@5d2da8ee.

gradle -v

------------------------------------------------------------ Gradle 2.3 ------------------------------------------------------------

Build time:

2015-02-16 05:09:33 UTC Build number: none Revision:

586be72bf6e3df1ee7676d1f2a3afd9157341274

Groovy:

2.3.9 Ant:

Apache Ant™ version 1.9.3 compiled on December 23 2013 JVM:

1.8.0_25 (Oracle Corporation 25.25-b02) OS:

Windows 7 6.1 amd64

If I new how to just load some class in groovysh then I could have found the attributes/properties/method of a task/class. Please share this process of how can one easily understand details about Task or any artifact used in gradle scripts.

You can find the Android Gradle Plug-in help here: http://developer.android.com/tools/building/plugin-for-gradle.html

Note that it may be easier to find Android-specific help on Stackoverflow.

You can find built-in Gradle tasks here: http://gradle.org/docs/current/dsl/

Hi,

Does not quite answer my question. I have difficult time trying to figure out the api/javadoc of tasks and plugins so that I can quickly do necessary changes.

Also to inspect the object like if we do in debugger I do not quite understand easy way like a debug shell like for java jdb etc. and setting break points.