Hi,
Please forgive my ignorance, as I am knew to Buildr and having a difficult time figuring out some of the concepts. What I am trying to do is create a zip file that contains all of my applications jar files and the dependent libraries (compile and runtime dependencies). Right now, I have only have 1 sub-project (eds-core) but ultimately there will be many sub-projects that all will have their own set of dependencies and need to get packaged into a single zip file. I'm assuming there's a way to do this without having to duplicate each dependency in the zip package project? Any help is greatly appreciated! Sincerely, Chris Adams Below is my very basic build file I have right now: VERSION_NUMBER = '1.0' repositories.remote << 'http://www.ibiblio.org/maven2' repositories.remote << 'http://repo1.maven.org/maven2' #Define our dependencies LOG4J = 'log4j:log4j:jar:1.2.15' DATABASE = struct( :pool => 'com.jolbox:bonecp:jar:0.7.1.RELEASE', :driver => 'mysql:mysql-connector-java:jar:5.1.17' ) JAVAMAIL = 'javax.mail:mail:jar:1.4.1' desc 'EDS Analyst Build Project' define 'eds-analyst' do project.version = VERSION_NUMBER project.group = 'edatasource' compile.options.target = '1.6' manifest['Copyright'] = 'eDataSource (c) 2011' desc 'The core libraries shared across all the projects' define 'eds-core' do compile.with LOG4J, transitive(JAVAMAIL), transitive(DATABASE.pool) package(:jar) end desc 'Packages up the ea-client' define 'eds-client' do compile.with project('eds-core').package(:jar) package(:zip) end end
