I'm starting to use Gradle, I really like what I see thus far.
I have an ant + ivy build for a web project I'm trying to migrate and
I have things pretty much where I want them save the libs in the war
file. I've read that transitive dependencies are followed only in the
runtime conf (by default) but I'm not seeing those transitive
dependencies in my lib folder. Is there something special I need to
do? My apologies if I missed a post like this in my search.
Below is the build.gradle file:
usePlugin('groovy')
usePlugin('war')
usePlugin('jetty')
version = '1.0-SNAPSHOT'
targetCompatibility = '1.5'
sourceCompatibility = '1.5'
// Needed for Groovy 1.6 -- http://jira.codehaus.org/browse/GRADLE-323
testCompile.groovyOptions*.fork = false
dependencies {
addMavenRepo()
addMavenRepo('http://tdljira2.octanner.com:8083/artifactory/repo')
addMavenRepo('http://repository.jboss.org/maven2')
addMavenStyleRepo('artifactory',
'http://tdljira2.octanner.com:8083/artifactory/repo')
addMavenStyleRepo('jboss', 'http://repository.jboss.org/maven2')
addConfiguration('servlet', {
extendsFrom = ['runtime']
})
excludeRules.add(org:'com.sun.facelets')
//excludeRules.add(org:'org.hibernate')
//excludeRules.add(org:'javax.transaction')
//excludeRules.add(org:'javax.persistence')
excludeRules.add(org:'logkit')
excludeRules.add(org:'javax.servlet')
excludeRules.add(org:'javax.el')
excludeRules.add(org:'xml-apis')
compile 'javax.faces:jsf-api:1.2_12', 'org.jboss.seam:jboss-seam:2.1.1.GA'
runtime 'org.icefaces:icefaces-facelets:1.8.0',
'org.icefaces:icefaces-comps:1.8.0',
'org.jboss.seam:jboss-seam:2.1.1.GA',
'org.jboss.seam:jboss-seam-debug:2.1.1.GA',
'org.jboss.seam:jboss-seam-ui:2.1.1.GA',
'org.jboss.seam:jboss-seam-ioc:2.1.1.GA'
testCompile 'org.codehaus.groovy:groovy-all:1.6.1'
}
Jason Porter
Real Programmers think better when playing Adventure or Rogue.
PGP key id: 926CCFF5
PGP fingerprint: 64C2 C078 13A9 5B23 7738 F7E5 1046 C39B 926C CFF5
PGP key available at: keyserver.net, pgp.mit.edu
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email