Skip to content
This repository has been archived by the owner on May 31, 2019. It is now read-only.

Commit

Permalink
Release 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
neatonk committed Jan 12, 2013
1 parent c5394f4 commit 6ee1ddc
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 17 deletions.
58 changes: 47 additions & 11 deletions README.md
@@ -1,25 +1,61 @@
# lein-deploy-deps

A Leiningen plugin to do many wonderful things.
Deploy all of your project's dependencies to a remote repository with
[Leiningen][0].

## Usage
## Install

### Leiningen 2

FIXME: Use this for user-level plugins:
Add `[lein-deploy-deps "0.1.0"]` to the `:plugins` vector of your
`:user` profile, or your `project.clj`.

Put `[lein-deploy-deps "0.1.0-SNAPSHOT"]` into the `:plugins` vector of your
`:user` profile, or if you are on Leiningen 1.x do `lein plugin install
lein-deploy-deps 0.1.0-SNAPSHOT`.
### Leiningen 1

FIXME: Use this for project-level plugins:
This has not been tested. If you use `lein-deploy-deps` with leiningen 1 please
let me know how it goes.

Put `[lein-deploy-deps "0.1.0-SNAPSHOT"]` into the `:plugins` vector of your project.clj.

FIXME: and add an example usage that actually makes sense:
$ lein plugin install lein-deploy-deps 0.1.0

## Usage

$ lein deploy-deps

OR

$ lein deploy-deps releases snapshots

Either command will deploy all of your projects dependencies to the `releases`
and `snapshots` repositories set up in your `project.clj` which should look
something like this:

```clojure
{:deploy-repositories [["snapshots" {:url "https://your-repo.org/snapshots"}]
["releases" {:url "https://your-repo.org/releases"}]]}
```

OR

```clojure
{repositories [["snapshots" {:url "https://your-repo.org/snapshots"}]
["releases" {:url "https://your-repo.org/releases"}]]}
```

You can use any repository that you've set up in your `project.clj`. For
repositories not named `"snapshots"` or `"releases"` you should make sure to set
`:snapshots` appropriately.

## Thanks!

This plugin was developed with the support of [otherpeoplespixels][1].

## License

Copyright © 2013 FIXME
Copyright © 2013 Kevin Neaton

Distributed under the [Eclipse Public License][2].

Distributed under the Eclipse Public License, the same as Clojure.
[0]: https://github.com/technomancy/leiningen
[1]: http://www.otherpeoplespixels.com
[2]: http://www.eclipse.org/legal/epl-v10.html
6 changes: 3 additions & 3 deletions project.clj
@@ -1,6 +1,6 @@
(defproject lein-deploy-deps "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
(defproject lein-deploy-deps "0.1.0"
:description "Deploy project dependencies to a remote repository"
:url "https://github.com/neatonk/lein-deploy-deps"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:eval-in-leiningen true)
6 changes: 3 additions & 3 deletions src/leiningen/deploy_deps.clj
Expand Up @@ -35,7 +35,7 @@
"Returns a lazy seq of dependency file maps ready for deploy."
[project]
(let [deps (deps-for project)
jars (map (comp :file meta) deps)
jars (jars-for deps)
poms (poms-for jars)]
(main/debug "Dependencies for: " project "\n\n" deps)
(assert (not-any? nil? (concat deps jars poms)))
Expand Down Expand Up @@ -73,8 +73,8 @@
(defn deploy-deps
"Deploy project dependencies to a remote repository.
The target repository for each dependency will be looked up in :repositories in
project.clj:
The target repository for each dependency will be looked up in :repositories
and :deploy-repositories in project.clj:
:repositories [[\"snapshots\" \"https://internal.repo/snapshots\"]
[\"releases\" \"https://internal.repo/releases\"]
Expand Down

0 comments on commit 6ee1ddc

Please sign in to comment.