Skip to content
Browse files

Merge pull request #3 from sghill/master

Steve your a champ.
  • Loading branch information...
2 parents 749cb35 + c763a7a commit 3bdcdbafaa02a81c090371b264de7abf414db0e0 @akiellor committed Jul 12, 2012
Showing with 54 additions and 34 deletions.
  1. +54 −34 README.md
View
88 README.md
@@ -17,8 +17,58 @@ This tool is for people who:
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:
```
@@ -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.sha1
```
-
-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.
+6) Add the [Gradle configuration](#gradle) or [Ivy configuration](#ivy) as above.
Where's it at?
-------------
@@ -104,5 +125,4 @@ Where's it at?
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.
Something went wrong with that request. Please try again.