Showing posts with label plugin. Show all posts
Showing posts with label plugin. Show all posts

Talk: Gradle Plugin Goodness


If you find yourself copying and pasting code from your application's build.gradle file every time you start a new project, then it's time you learn about creating Gradle plugins. In this presentation you will learn what it takes to create a custom Gradle plugin for use in your Android/Java applications.

Talk: Gradle Plugin Goodness



If you find yourself copying and pasting code from your application's build.gradle file every time you start a new project, then it's time you learn about creating Gradle plugins. In this presentation you will learn what it takes to create a custom Gradle plugin for use in your Android/Java applications. 

It covers: Plugin Structure, Key Plugin Components, Testing, and Publishing


Materials


If you would like to learn more about creating high quality Android applications, I encourage you to check out my video course. Also, follow me on Twitter for my latest updates.

Removing jar files from your Grails war

Recently I encountered a situation where a plugin was bringing in a version of a jar file that was causing my application to misbehave.  In order to fix this issue I had to remove the errant jar file from the final build.  This is the code that you can use to do that.  You have to place this code snippet in your BuildConfig.groovy.  Hope this helps someone else.

grails.war.resources = { stagingDir ->
  delete(file:"${stagingDir}/WEB-INF/lib/<name>.jar")
}