DEX-Company / clj-zeppelin

Clojure client to the Zeppelin notebook API
Eclipse Public License 1.0
0 stars 0 forks source link

Create a release version #21

Open shark8me opened 5 years ago

shark8me commented 5 years ago

See lein release

kavyapc01 commented 5 years ago

When running the lein release command , this is the issue that is displayed.Even after changing the version of the project , the same issue is shown.

C:\Users\uvion\Desktop\clj-zeppelin>lein release warning: CRLF will be replaced by LF in project.clj. The file will have its original line endings in your working directory. On branch clj_zeppelin_version_2.0 nothing to commit, working tree clean java.lang.Exception: Couldn't commit. git exit code: 1 at leiningen.core.eval$sh_with_exit_code.invokeStatic (eval.clj:212) leiningen.core.eval$sh_with_exit_code.doInvoke (eval.clj:200) clojure.lang.RestFn.invoke (RestFn.java:516) leiningen.vcs$fn8505.invokeStatic (vcs.clj:78) leiningen.vcs/fn (vcs.clj:72) clojure.lang.MultiFn.invoke (MultiFn.java:233) leiningen.vcs$fn8505.invokeStatic (vcs.clj:74) leiningen.vcs/fn (vcs.clj:72) clojure.lang.MultiFn.invoke (MultiFn.java:229) clojure.lang.Var.invoke (Var.java:379) clojure.lang.AFn.applyToHelper (AFn.java:154) clojure.lang.Var.applyTo (Var.java:700) clojure.core$apply.invokeStatic (core.clj:648) clojure.core$apply.invoke (core.clj:641) leiningen.vcs$vcs.invokeStatic (vcs.clj:110) leiningen.vcs$vcs.doInvoke (vcs.clj:104) clojure.lang.RestFn.invoke (RestFn.java:425) clojure.lang.Var.invoke (Var.java:383) clojure.lang.AFn.applyToHelper (AFn.java:156) clojure.lang.Var.applyTo (Var.java:700) clojure.core$apply.invokeStatic (core.clj:648) clojure.core$apply.invoke (core.clj:641) leiningen.core.main$partial_task$fn__4667.doInvoke (main.clj:284)

shark8me commented 5 years ago

I guess the error says that there are no commits left to do, which doesn't make sense. Search if there are other plugins that do a release. Also, a release to clojars should not contain - snapshot in the name. Read about the difference between snapshot and tagged releases.

shark8me commented 5 years ago

There should be no uncommitted files, did you check that? Read the docs in the source here https://github.com/technomancy/leiningen/blob/master/src/leiningen/release.clj

kavyapc01 commented 5 years ago

Successfully released the clj-zeppelin-0.1.0 project .Please see the link below https://github.com/DEX-Company/clj-zeppelin/releases

Also deployed clj-zeppelin-0.1.0 to clojars without the snapshot tag.Please see the link below https://clojars.org/clj-zeppelin/versions/0.1.0

shark8me commented 5 years ago

Nice work! :) Please document it.. Why didn't it work initially? Did it require a change to the project.clj?

On Thu, 22 Nov 2018 at 15:38, kavyapc01 notifications@github.com wrote:

Successfully released the clj-zeppelin-0.1.0 project .Please see the link below https://github.com/DEX-Company/clj-zeppelin/releases

Also deployed clj-zeppelin-0.1.0 to clojars without the snapshot tag.Please see the link below https://clojars.org/clj-zeppelin/versions/0.1.0

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DEX-Company/clj-zeppelin/issues/21#issuecomment-440939377, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFb9EHf2DbEf7lVLKUBFwT44iUllBRPks5uxlSKgaJpZM4X0sBD .

-- Regards Kiran

kavyapc01 commented 5 years ago

-When lein release command was run from the terminal, the below error was shown: "java.lang.Exception: Couldn't commit. git exit code: 1". -Tried adding lein release plugin to the :user -> :plugins section of /.lein/profiles.clj and then running the lein release command.Then the error shown was: "java.io.IOException: Cannot run program "lein": CreateProcess error=2, The system cannot find the file specified" -So lein release task was executed step by step. The steps are as follows: 1.lein vcs assert-committed 2.lein vcs commit 3.lein vcs tag 4.lein vcs push

shark8me commented 5 years ago

I believe you should be able to add a "release-task" in project.clj, with just these tasks. Then running "lein release" would run only those tasks.

On Thu, 22 Nov 2018 at 19:01, kavyapc01 notifications@github.com wrote:

-When lein release command was run from the terminal, the below error was shown: "java.lang.Exception: Couldn't commit. git exit code: 1". -Tried adding lein release plugin to the :user -> :plugins section of /.lein/profiles.clj and then running the lein release command.Then the error shown was: "java.io.IOException: Cannot run program "lein": CreateProcess error=2, The system cannot find the file specified" -So lein release task was executed step by step. The steps are as follows: 1.lein vcs assert-committed 2.lein vcs commit 3.lein vcs tag 4.lein vcs push

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DEX-Company/clj-zeppelin/issues/21#issuecomment-440994481, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFb9DWTF5pWeKmo44d83jPeyLDg-zWeks5uxoQggaJpZM4X0sBD .

-- Regards Kiran

kavyapc01 commented 5 years ago

Added the custom lein release tasks to project.clj and successfully executed the lein release command. The released version using the above is 0.1.2