Skip to content
This repository has been archived by the owner on Feb 23, 2018. It is now read-only.

Commit

Permalink
Merge pull request #3 from sghill/master
Browse files Browse the repository at this point in the history
Steve your a champ.
  • Loading branch information
akiellor committed Jul 12, 2012
2 parents 749cb35 + c763a7a commit 3bdcdba
Showing 1 changed file with 54 additions and 34 deletions.
88 changes: 54 additions & 34 deletions README.md
Expand Up @@ -17,8 +17,58 @@ This tool is for people who:


I'm hoping thats not just me... I'm hoping thats not just me...


Trying it out. Trying it out -- GemJars.org Hosted
-------------- -----------------------------------
### Gradle
1) Add to your `repositories`:
```
repositories {
ivy {
url 'http://gemjars.org:8080'
layout 'pattern', {
artifact 'jars/[organization]/[module]-[revision].jar'
ivy 'ivys/[organization]/ivy-[module]-[revision].xml'
}
}
}
```
2) Add to your `dependencies`:
```
dependencies {
compile 'org.rubygems:rspec:2.11.0'
}
```
3) Perform a `gradle dependencies` and watch it resolve rspec and all its transitive dependencies
### Ivy
1) In your `ivysettings.xml`, set up the following resolver:

```xml
<ivysettings>
...
<url name="gems">
<ivy pattern="http://gemjars.org:8080/ivys/[organization]/ivy-[module]-[revision].xml" />
<artifact pattern="http://gemjars.org:8080/jars/[organization]/[module]-[revision].jar" />
</url>
...
<chain name="default">
...
<resolver ref="gems" />
</chain>
</ivysettings>
```

2) In your `ivy.xml`, add a dependency from `org.rubygems`.

```xml
<ivy-module version="2.0">
<dependency org="org.rubygems" name="cucumber" rev="1.0.0" />
</ivy-module>
```

3) Perform an `ivy resolve` and watch Ivy resolve cucumber and all its transitive dependencies.

Trying it out -- DIY
--------------------
1) Clone the repo: 1) Clone the repo:


``` ```
Expand Down Expand Up @@ -53,36 +103,7 @@ Trying it out.
$ curl -i http://localhost:8080/ivys/org.rubygems/ivy-cucumber-1.0.0.xml.md5 $ curl -i http://localhost:8080/ivys/org.rubygems/ivy-cucumber-1.0.0.xml.md5
$ curl -i http://localhost:8080/ivys/org.rubygems/ivy-cucumber-1.0.0.xml.sha1 $ curl -i http://localhost:8080/ivys/org.rubygems/ivy-cucumber-1.0.0.xml.sha1
``` ```

6) Add the [Gradle configuration](#gradle) or [Ivy configuration](#ivy) as above.
Hooking it up with ivy
----------------------

1) In your `ivysettings.xml`, set up the following resolver:

```xml
<ivysettings>
...
<url name="gems">
<ivy pattern="http://localhost:8080/ivys/[organization]/ivy-[module]-[revision].xml" />
<artifact pattern="http://localhost:8080/jars/[organization]/[module]-[revision].jar" />
</url>
...
<chain name="default">
...
<resolver ref="gems" />
</chain>
</ivysettings>
```

2) In your `ivy.xml`, add a dependency from `org.rubygems`.

```xml
<ivy-module version="2.0">
<dependency org="org.rubygems" name="cucumber" rev="1.0.0" />
</ivy-module>
```

3) Perform an `ivy resolve` and watch Ivy resolve cucumber and all its transitive dependencies.


Where's it at? Where's it at?
------------- -------------
Expand All @@ -104,5 +125,4 @@ Where's it at?


License License
------- -------
<http://www.opensource.org/licenses/Apache-2.0> [Apache 2.0](http://www.opensource.org/licenses/Apache-2.0)

0 comments on commit 3bdcdba

Please sign in to comment.