Grails package-plugin exclude jar file

All,

I have created a plugin that I will be using across several projects. For testing purposes, I have included the jar file needed to connect to Oracle to test the domain classes in this plugin. I do not want this jar file to be included in the packaged plugin (done by running package-plugin). The jar file exists in the /lib directory. What do I have to do to make sure it gets excluded in the packaged plugin?

Thank you for any help!

Answers


Use pluginExcludes like this:

class UiPerformanceGrailsPlugin {

    String version = '1.2.1'
    String grailsVersion = '1.0 > *'
    Map dependsOn = [:]
    List pluginExcludes = [
        'lib/build/*.jar',
        'lib/easymock.jar',
        'src/groovy/com/studentsonly/grails/plugins/uiperformance/taglib/AbstractTaglibTest.groovy'
    ]
....
}

Need Your Help

Why is this python script slowly chewing up my RAM?

python sqlalchemy pymongo

This script slowly eats my RAM. When I run it, I can see the RAM usage of Python creep up by approx 1mb with each loop, but I can't figure out why. I have figured out that it is the iteration of ...

How to replace the row command event for a gridview with clickable manner?

c# javascript asp.net gridview rowcommand

I have a grid view ,i use the row command to open a specific window with several parameters.

Missing int values when importing from csv into MySQL

mysql sql database csv

I'm currently building a database that works with helping students build a class schedule. I've "succeeded" in importing two of the three columns using a csv file but I'm having issues importing th...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.