I figured it out.  It was really an Ivy resolver question.  Here is
what I have.  Please comment on bad practice you see:

repositories {
  add(new org.apache.ivy.plugins.resolver.URLResolver()) {
    name = "blah"
addIvyPattern 
'http://archivaserver:8080/archiva/repository/osgi-official/[organisation]/[module]/[revision]/ivy_[revision].xml'
addArtifactPattern
"http://archivaserver:8080/archiva/repository/osgi-official/[organisation]/[organisation]/[module]_[revision](-[classifier]).[ext]"
 }


dependencies {
  compile name: 'com.ibm.icu', group: "com.ibm.icu", version: '4.2.1.v20100212'
  compile name: 'com.thoughtworks.xstream', group:
"com.thoughtworks.xstream", version: '1.2.2.v200804301056'
  compile name: 'javax.jms', group: "javax.jms", version: '1.1.0.200810061358'
  compile name: 'javax.servlet', group: "javax.servlet",
version:'2.5.0.v200806031605'
  compile name: 'org.apache.commons.logging', group:
"org.apache.commons.logging", version:'1.0.4.v200904062259'
  compile name: 'org.apache.xerces', group: "org.apache.xerces",
version:'2.9.0.v200805270400'
  compile name: 'org.apache.xml.resolver', group:
'org.apache.xml.resolver', version:'1.2.0.v200902170519'
  compile name: 'org.eclipse.osgi', group: 'org.eclipse.osgi',
version:'3.5.1.R35x_v20090827'
  compile name: 'org.xmlpull', group: 'org.xmlpull', version:'1.1.4c'
}




On Fri, Aug 6, 2010 at 4:46 PM, phil swenson <[email protected]> wrote:
> I haven't gotten any response, so posted to StackOverflow.  Easier to
> read here:  
> http://stackoverflow.com/questions/3428318/gradle-repository-ivy-maven-question
>
>
>
> On Fri, Aug 6, 2010 at 11:25 AM, phil swenson <[email protected]> wrote:
>> My company is publishing external and internal jars and osgi bundles
>> to an Archiva repository.  I am trying to do a gradle OSGi bundle
>> build against these, but I'm not sure how to reference these
>> repositories.
>>
>> It looks like for external dependencies they have a directory
>> structure like this:
>> http://archivaserver:8080/archiva/repository/osgi-official/org.mockito/org.mockito/
>>
>> collection: /org.mockito/org.mockito
>>
>> org.mockito (Parent)
>> 1.8.5
>> maven-metadata.xml
>> maven-metadata.xml.md5
>> maven-metadata.xml.sha1
>>
>>
>> for internal dependencies it looks like:
>>
>> url:  
>> http://archivaserver:8080/archiva/repository/osgi-internal/mycompany/mycompany.blah.package/8.2.0.0000-0407/
>>
>> Collection: /com.mycompany/com.mycompany.blah.package/8.2.0.0000-0407
>>
>> com.mycompany/com.mycompany.blah.package (Parent)
>> com.mycompany.blah.package-8.2.0.0000-0407.jar
>> com.mycompany.blah.package-8.2.0.0000-0407.jar.md5
>> com.mycompany.blah.package-8.2.0.0000-0407.jar.sha1
>> com.mycompany.blah.package.feature-8.2.0.0000-0407.jar
>> com.mycompany.blah.package.feature-8.2.0.0000-0407.jar.md5
>> com.mycompany.blah.package.feature-8.2.0.0000-0407.jar.sha1
>> ivy-8.2.0.0000-0407.xml
>> ivy-8.2.0.0000-0407.xml.md5
>> ivy-8.2.0.0000-0407.xml.sha1
>>
>>
>> So I guess for external it supports maven, and internal it's ivy.  So
>> my question is, how do I configure these repositories in Gradle? It's
>> not clear to me what to put in the "repositories{}" section of my
>> build.gradle/
>>
>>
>>
>> Thanks !
>>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to