actionSystem.AnAction and org.gradle.api

I'm using Android Studio; when I build it gives me a warning "please repackage it with jarjar "

So I'm making a plugin based on https://github.com/shevek/jarjar

With this, my app's build.gradle file should be able to contain something like:

    compile jarjar.repackage {
from 'org.apache.httpcomponents:httpclient:4.5.2'

classRename "org.apache.**" "org.foo.org.apache.@1"
}

 

Two questions:

First, how does my plugin class extending com.intellij.openapi.actionSystem.AnAction read this context / these args out of the app's build.gradle file when it is invoked?  A hint as to which method to explore please? 

Second, classes in https://github.com/shevek/jarjar/tree/master/jarjar-gradle/src/main/java/org/anarres/gradle/plugin/jarjar are written against org.gradle.api

I don't suppose there is some magic for using the org.gradle.api within a plugin?

thanks .. Jason

0

Please sign in to leave a comment.