Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use lein as the build tool and deploy to clojars
Deploys with the com.palletops group id.
- Loading branch information
1 parent
7cbfe2b
commit 5f46f01
Showing
8 changed files
with
107 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
*jar | ||
lib | ||
logs | ||
classes | ||
target | ||
snippets | ||
doc/** | ||
notes.txt | ||
/target | ||
/lib | ||
/classes | ||
/checkouts | ||
/logs | ||
/doc | ||
doc-src/VERSIONS.md | ||
doc-src/INTRO.md | ||
pom.xml | ||
pom.xml.asc | ||
*.jar | ||
*.class | ||
.lein-deps-sum | ||
.lein-failures | ||
.lein-plugins | ||
.lein-repl-history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{:dev {:dependencies [[ch.qos.logback/logback-classic "1.0.9"]] | ||
:plugins [[lein-set-version "0.3.0"]]} | ||
:doc {:dependencies [[com.palletops/pallet-codox "0.1.0-SNAPSHOT"]] | ||
:plugins [[codox/codox.leiningen "0.6.4"] | ||
[lein-marginalia "0.7.1"]] | ||
:codox {:writer codox-md.writer/write-docs | ||
:output-dir "doc/1.3/api" | ||
:src-dir-uri "https://github.com/pallet/pallet-common/blob/develop" | ||
:src-linenum-anchor-prefix "L"} | ||
:aliases {"marg" ["marg" "-d" "doc/1.3/annotated"] | ||
"codox" ["doc"] | ||
"doc" ["do" "codox," "marg"]}} | ||
:1.3 {:dependencies [[org.clojure/clojure "1.3.0"]]} | ||
:1.4 {:dependencies [[org.clojure/clojure "1.4.0"]]} | ||
:1.5 {:dependencies [[org.clojure/clojure "1.5.1"]]} | ||
:release | ||
{:set-version | ||
{:updates [{:path "README.md" :no-snapshot true}]}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(defproject com.palletops/thread-expr "1.3.0-SNAPSHOT" | ||
:description "Thread-expr provides macros for use within a clojure threaded | ||
argument expressions (-> and ->>)." | ||
:url "http://palletops.com" | ||
:license {:name "Eclipse Public License" | ||
:url "http://www.eclipse.org/legal/epl-v10.html"} | ||
:dependencies [[org.clojure/clojure "1.2.1"] | ||
[org.clojure/tools.macro "0.1.1"]]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/bash | ||
|
||
# release thread-expr | ||
|
||
if [[ $# -lt 3 ]]; then | ||
echo "usage: $(basename $0) previous-version new-version next-version" >&2 | ||
exit 1 | ||
fi | ||
|
||
previous_version=$1 | ||
version=$2 | ||
next_version=$3 | ||
|
||
echo "" | ||
echo "Start release of $version, previous version is $previous_version" | ||
echo "" | ||
echo "" | ||
|
||
lein do clean, with-profile default:1.3:1.4:1.5 test && \ | ||
git flow release start $version || exit 1 | ||
|
||
lein with-profile +release set-version ${version} :previous-version ${previous_version} \ | ||
|| { echo "set version failed" >2 ; exit 1; } | ||
|
||
echo "" | ||
echo "" | ||
echo "Changes since $previous_version" | ||
git --no-pager log --pretty=changelog thread-expr-$previous_version.. | ||
echo "" | ||
echo "" | ||
echo "Now edit project.clj, ReleaseNotes and README" | ||
|
||
$EDITOR project.clj | ||
$EDITOR ReleaseNotes.md | ||
$EDITOR README.md | ||
|
||
echo -n "commiting project.clj, release notes and readme. enter to continue:" \ | ||
&& read x \ | ||
&& git add project.clj ReleaseNotes.md README.md \ | ||
&& git commit -m "Updated project.clj, release notes and readme for $version" \ | ||
&& echo -n "Peform release. enter to continue:" && read x \ | ||
&& lein do clean, install, test, deploy clojars \ | ||
&& git flow release finish $version \ | ||
&& echo "Now push to github. Don't forget the tags!" \ | ||
&& lein with-profile +doc doc \ | ||
&& lein with-profile +release set-version ${next_version} \ | ||
&& git add project.clj \ | ||
&& git commit -m "Updated version for next release cycle" |
This file was deleted.
Oops, something went wrong.