Yes, you are correct thank you. This replaces my shell script. My build
file becomes:
pply plugin: 'groovy'
/*
repositories {
mavenCentral()
}
*/
task copyToLib(type: Copy) {
into "lib"
from configurations.runtime
}
dependencies {
/*
groovy group: 'org.codehaus.groovy', name: 'groovy', version: '1.7.0'
groovy group: 'org.hibernate', name: 'hibernate-core', version:
'3.3.2.GA'
groovy group: 'org.hibernate', name: 'hibernate-annotations', version:
'3.4.0.GA'
groovy group: 'org.slf4j', name: 'slf4j-jdk14', version: '1.6.0'
groovy group: 'org.jasypt', name: 'jasypt', version: '1.6'
groovy group: 'org.codehaus.groovy.modules.http-builder', name:
'http-builder', version: '0.5.0'
groovy group: 'net.sourceforge.htmlunit', name: 'htmlunit', version:
'2.7'
testCompile group: 'junit', name: 'junit', version: '4.7'
*/
groovy fileTree(dir: 'lib', include: '*.jar')
}
Thank you!
Misha
p.s. I still have to comment out the dependencies I believe if I want to
use local versions - please let me know if not correct. Thank you
On Thu, 2010-06-10 at 20:06 -0700, Helmut Denk wrote:
> doesn't this snippet from the cookbook fit your needs ?:
>
> // Gathering dependencies associated with a configuration
> // in one folder
>
> task copyToLib(type: Copy) {
> into 'lib'
> from configurations.compile
> }
>
> IMO build-logic should not depend much on 'cached or not cached'
> ... despite from setting resolver-attributes.
>
> have a nice day
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email