Fork me on GitHub

23 Jun 2009

Scripting Plugin and Dependency Installation

Another quick script that I find quite useful, particularly on continuous integration servers is my Prepare.groovy script. It solves a couple of problems

  • Some plugins are not as well behaved as others on installation, for example the Functional Testing plugin automatically installs when test-app or run-app is installed but will then immediately crash with a ClassNotFoundException because the libraries it depends on are not on the classpath yet. Re-running the command will then work but if the commands are part of a CI build it's probably already bombed out and reported a broken build.
  • The Ivy plugin is great but test-app and run-app won't invoke its get-dependencies target to pull down libraries the way they will automatically install plugins.
  • Sometimes the grails command you want the build to execute is supplied by a plugin so there's no convenient way to run it directly from a brand new workspace because the plugin isn't installed yet.

The script simply ensures all plugins are installed and then invokes the Ivy plugin's get-dependencies target (only if the Ivy plugin is installed - it won't blow up on you if you don't use Ivy). At that point you should have a fully workable workspace and be able to run any grails command you like without your app complaining that some library or other isn't present.


Ruby Nash said...

Thank you so much for posting this concise article. It was necessary for me to read this. It's not a secret that frequently we need support and somebody's advice. As well, it can be inspiration for writing my incredible term paper. I hope that soon I'll share it with you.

Unknown said...

Hello, I would like to thank you for sharing this interesting information. Moreover, the material mentioned here will be useful for a lot of people. Personally, I will use it in my quality essay. Thank you a lot.

Yogesh Singh said...

TechAmy is probably the easiest way to step into the world of modded Minecraft . Of course, if you prefer installing your mods manually, that's an option too—just be aware that different Minecraft versions can make things too complicatedClash of Clans Unlimited Everthing. Likewise, some of the older, previously popular mods might have stopped being updated or switched to new creators, so keeping track without some kind of mod manager can be a pain. This list of mods has been updated for 2021. MX player pro apk They've been organised by the most recent version of Minecraft that they support, so you should be able to choose the best Minecraft mods that will run on your installationMini Militia Mod Apk .

Yogesh Singh said...

is probably the easiest way to step into the world of modded Minecraft Pubg Mobile Lite