Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish jar files for each release #13

Closed
ligurio opened this issue Oct 11, 2021 · 10 comments
Closed

Publish jar files for each release #13

ligurio opened this issue Oct 11, 2021 · 10 comments

Comments

@ligurio
Copy link
Contributor

ligurio commented Oct 11, 2021

please publish jar files

@aphyr
Copy link
Contributor

aphyr commented Oct 11, 2021 via email

@ligurio
Copy link
Contributor Author

ligurio commented Oct 11, 2021

As noted in the readme, every release is already published on clojars.

Missed it. Thanks, Kyle.

@ligurio ligurio closed this as completed Oct 11, 2021
@ligurio
Copy link
Contributor Author

ligurio commented Oct 15, 2021

Unfortunately Elle on Clojars is not suitable to run standalone, see:

$ curl -O -L https://clojars.org/repo/elle/elle/0.1.2/elle-0.1.2.jar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   154  100   154    0     0    158      0 --:--:-- --:--:-- --:--:--   158
100 67282  100 67282    0     0  29757      0  0:00:02  0:00:02 --:--:--  698k
$ java -jar elle-0.1.2.jar 
Error: Could not find or load main class clojure.main
Caused by: java.lang.ClassNotFoundException: clojure.main
$ 

Would it be possible to publish self-contained (I'm not familiar with Java, probably it's a static Jar file) Elle on Github Releases?
If you are agree but don't want to spend time on it I can do it myself.

@ligurio ligurio reopened this Oct 15, 2021
@aphyr
Copy link
Contributor

aphyr commented Oct 15, 2021 via email

@ligurio
Copy link
Contributor Author

ligurio commented Oct 15, 2021

Like you don't have Maven or Gradle or lein or SBT/etc.

Right. I want to use jar with Elle as a blackbox and communicate with it in a project that don't use Java or Clojure at all. That's why I'm asking about fat jar. Would it be possible?

@ligurio
Copy link
Contributor Author

ligurio commented Oct 16, 2021

Should Elle's demo work for standalone jar?

sergeyb@pony:~/sources/elle$ lein deps
sergeyb@pony:~/sources/elle$ lein uberjar
Created /home/sergeyb/sources/elle/target/elle-0.1.3-SNAPSHOT.jar
Created /home/sergeyb/sources/elle/target/elle-0.1.3-SNAPSHOT-standalone.jar
sergeyb@pony:~/sources/elle$ java -jar target/elle-0.1.3-SNAPSHOT-standalone.jar 
Clojure 1.2.1
user=> (require '[elle.list-append :as a])
java.lang.NoSuchMethodError: 'clojure.lang.Keyword clojure.lang.RT.keyword(java.lang.String, java.lang.String)' (list_append.clj:1)
user=> 

@aphyr
Copy link
Contributor

aphyr commented Oct 17, 2021 via email

@ligurio
Copy link
Contributor Author

ligurio commented Oct 18, 2021

Oh, uh, no idea---never tried that before. Elle is a library, so you'd probably want to write some sort of wrapper program that would call it and do whatever sort of I/O you needed--presumably reading files or stdin, parsing and massaging input, parsing args, invoking the checker, etc

Agree. It looks as a separate business :) I'll try to implement cli for Elle in a spare time.

@ligurio ligurio closed this as completed Oct 18, 2021
@ligurio
Copy link
Contributor Author

ligurio commented Jan 7, 2022

Made a separate tool for checking consistency based on Knossos and Elle -
https://github.com/ligurio/elle-cli

@aphyr
Copy link
Contributor

aphyr commented Jan 7, 2022

Ah, delightful! I've added a see-also link to elle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants