Skip to content

Instantly share code, notes, and snippets.

@tomkoptel
Last active April 22, 2018 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomkoptel/c487bb3bb1e52071164fe6b7b8a310f6 to your computer and use it in GitHub Desktop.
Save tomkoptel/c487bb3bb1e52071164fe6b7b8a310f6 to your computer and use it in GitHub Desktop.
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.InputFile
import java.io.File
/**
* Make sure the task is open. Otherwise the plugin will fail with exception:
* org.gradle.api.GradleException: Could not generate a proxy class for class com.sample.coolplugin.CoolTask.
*/
open class CoolTask : DefaultTask() {
// Represents path to the instrumentation task that get generated for the tests
@InputFile
var instrumentationApkFile: File? = null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment