Hi Dan, this works for me. Which version of Gradle are you using?
- Hans On Fri, Sep 3, 2010 at 8:56 AM, Jason Porter <[email protected]>wrote: > I'm posting for Dan Allen, who's stuck at subscription :) > Jason Porter > http://lightguard-jp.blogspot.com > http://twitter.com/lightguardjp > > > ---------- Forwarded message ---------- > From: Dan Allen <[email protected]> > > I'm attempting to put together a Gradle build for our Arquillian demo. > Arquillian has a fairly complex dependency tree due to the fact that > it's a integration testing framework. As a result, I seem to be suck > at square one. > The first thing I need to do is depend on a pom artifact (extension > .pom) that contains a list of JAR dependencies. The artifact is: > org.jboss.spec:jboss-javaee-6.0:1.0.0.Beta7 > It's located in the JBoss public repository: > > https://repository.jboss.org/nexus/content/groups/public/org/jboss/spec/jboss-javaee-6.0/1.0.0.Beta7/jboss-javaee-6.0-1.0.0.Beta7.pom > My Gradle build is quite simple: > apply plugin: 'java' > repositories { > mavenCentral() > mavenRepo urls: [" > http://repository.jboss.org/nexus/content/groups/public/"] > } > dependencies { > compile(group: 'org.jboss.spec', name: 'jboss-javaee-6.0', version: > '1.0.0.Beta7', ext: 'pom') { > transitive = true > } > } > Assume that you have a very basic test class that prints a class file > from the Java EE spec: > package example; > import javax.inject.Inject; > public class CompileMe { > @Inject private String injectedString; > } > I want to be able to compile that class with my above Gradle file. > gradle compileJava > Anyone know why this doesn't work? > -Dan > p.s. For the sake of testing, here's a pom.xml to compile this class > (just so you know what you are shooting for) > <?xml version="1.0" encoding="UTF-8"?> > <project xmlns="http://maven.apache.org/POM/4.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd"> > <modelVersion>4.0.0</modelVersion> > <groupId>com.acme</groupId> > <artifactId>simple-gradle</artifactId> > <packaging>jar</packaging> > <name>Simple Gradle</name> > <version>1.0.0-SNAPSHOT</version> > <repositories> > <repository> > <id>jboss-public-repository</id> > <name>JBoss Repository</name> > <url>http://repository.jboss.org/nexus/content/groups/public > </url> > </repository> > </repositories> > <dependencies> > <dependency> > <groupId>org.jboss.spec</groupId> > <artifactId>jboss-javaee-6.0</artifactId> > <version>1.0.0.Beta7</version> > <type>pom</type> > </dependency> > </dependencies> > </project> > -- > Dan Allen > Principal Software Engineer, Red Hat | Author of Seam in Action > Registered Linux User #231597 > > http://mojavelinux.com > http://mojavelinux.com/seaminaction > http://www.google.com/profiles/dan.j.allen > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > >
