Re: [Q] Deploying two artefacts/jars with same group/artefactid via Leiningen
@Francis Great that works. Thank's! The deploy task expects a repo argument in this case though. So I came up with this: https://github.com/henrik42/buttle/blob/1.0.0/plugin/leiningen/deploy_driver.clj With this I can use this in project.clj https://github.com/henrik42/buttle/blob/master/project.clj#L39-L44 "deploy-driver" ["deploy-driver" ;; calls Buttle's plugin/leiningen/deploy_driver.clj ":leiningen/repository" ;; pseudo repository -- see plugin/leiningen/deploy_driver.clj "buttle/buttle" ;; group/artefact-id ":leiningen/version";; pseudo version number -- see plugin/leiningen/deploy_driver.clj "driver";; classifier "target/uberjar/buttle-driver.jar"] ;; file -- see :uberjar-name "deploy-all" ["do" "deploy," "uberjar," "deploy-driver"] ;; depoy everything to snapshots/releases depending on version -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Q] Deploying two artefacts/jars with same group/artefactid via Leiningen
I haven't used lein-package but I am surprised it doesn't handle this case. This issue I think describes a similar use case, perhaps it helps you? https://github.com/pliant/lein-package/issues/9 `lein deploy` has a long form which accepts arbitrary filenames: $ lein help deploy Deploy jar and pom to remote repository. The target repository will be looked up in :repositories in project.clj: :repositories [["snapshots" "https://internal.repo/snapshots";] ["releases" "https://internal.repo/releases";] ["alternate" "https://other.server/repo";]] If you don't provide a repository name to deploy to, either "snapshots" or "releases" will be used depending on your project's current version. You may provide a repository URL instead of a name. See `lein help deploying` under "Authentication" for instructions on how to configure your credentials so you are not prompted on each deploy. You can also deploy arbitrary artifacts from disk: $ lein deploy myrepo com.blueant/fancypants 1.0.1 fancypants.jar pom.xml While this works with any arbitrary files on disk, downstream projects will not be able to depend on jars that are deployed without a pom. Arguments: ([] [repository] [repository identifier version & files]) So as an extra step after a normal deploy you can do: lein deploy myrepo com.blueant/fancypants 1.0.1 fancypants-1.0.1-app.jar This would add this jar as-is to the correct directory in myrepo. On Thursday, March 28, 2019 at 1:05:39 PM UTC-5, henrik42 wrote: > > Hi, > > I have an uberjar that I want to deploy to clojars. Part of > building the uberjar is building the "standard" lib-jar of the > same project. > > Now I'd like to release/deploy both with the same group/artefactid to > clojars. The uberjar should get the :classifier "app". > > So after that people could lein depend on the lib-jar and can download > the "app" via browser/wget/etc. > > I've tried different things (e.g. lein-package) with no luck. > > The problem is that deploying them "one at a time" re-deploys pom.xml and > that fails. > So deployen two jars must be aware of this and deploy pom.xml only once. > > Any idea? > > -- Henrik > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Q] Deploying two artefacts/jars with same group/artefactid via Leiningen
I'm doing this in shadow-cljs deploying a normal jar and one with aot. I'm not exactly sure how you'd do that for an uberjar though. https://github.com/thheller/shadow-cljs/blob/master/project.clj#L96-L103 On Thursday, March 28, 2019 at 7:05:39 PM UTC+1, henrik42 wrote: > > Hi, > > I have an uberjar that I want to deploy to clojars. Part of > building the uberjar is building the "standard" lib-jar of the > same project. > > Now I'd like to release/deploy both with the same group/artefactid to > clojars. The uberjar should get the :classifier "app". > > So after that people could lein depend on the lib-jar and can download > the "app" via browser/wget/etc. > > I've tried different things (e.g. lein-package) with no luck. > > The problem is that deploying them "one at a time" re-deploys pom.xml and > that fails. > So deployen two jars must be aware of this and deploy pom.xml only once. > > Any idea? > > -- Henrik > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Q] Deploying two artefacts/jars with same group/artefactid via Leiningen
Hi, I have an uberjar that I want to deploy to clojars. Part of building the uberjar is building the "standard" lib-jar of the same project. Now I'd like to release/deploy both with the same group/artefactid to clojars. The uberjar should get the :classifier "app". So after that people could lein depend on the lib-jar and can download the "app" via browser/wget/etc. I've tried different things (e.g. lein-package) with no luck. The problem is that deploying them "one at a time" re-deploys pom.xml and that fails. So deployen two jars must be aware of this and deploy pom.xml only once. Any idea? -- Henrik -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.