borgeby / jarl

Jarl is an Open Policy Agent (OPA) evaluator for the JVM and Javascript, written in Clojure(Script)
Apache License 2.0
41 stars 5 forks source link

Publish to Maven Central #161

Open anderseknert opened 1 year ago

anderseknert commented 1 year ago

In order to ease the integration for Java projects — and allow them to not have to add another repository in their build config — we should publish Jarl to Maven Central.

Unfortunately, this is not simple.

kjothen commented 1 year ago

Hi @anderseknert. In the interim, do you think you could commit the core/pom.xml file? This way, clojure programs can use a git dependency coordinate like this:

{:deps 
 {boregby.jarl 
  {:git/url "https://github.com/borgeby/jarl.git" 
   :deps/root "core" 
   :sha "{{replace with commit hash}}"}}}

If this were a deps project then we wouldn't need the pom, but it's a lein project so we do. This would be so useful just now, and a lot less work.

anderseknert commented 1 year ago

Sure! Would you want to submit a PR for that? I’m traveling for the next couple of days but I’d be happy to merge this. If not I’ll get to it as soon as I’m back.

kjothen commented 1 year ago

Sure thing @anderseknert, I'll submit a PR, and thanks for getting back so quickly!