scala-cli icon indicating copy to clipboard operation
scala-cli copied to clipboard

Integrate with jitpack.io

Open armanbilge opened this issue 3 years ago • 1 comments

Awesome that scala-cli is getting publishing capabilities!

Currently, one of the hardest parts of publishing is registering with Sonatype/Maven and creating a GPG key pair.

https://jitpack.io/ makes it even easier by letting you publish directly out of your GH repository.

resolvers += "jitpack" at "https://jitpack.io"
libraryDependencies += "com.github.User" % "Repo" % "Tag"

It currently only works with Gradle, Maven, Sbt and Leiningen according to https://docs.jitpack.io/building/

It would be really awesome if it could support scala-cli as well. Imagine if you can "publish" just by pointing jitpack to a scala-cli gist!

armanbilge avatar Mar 14 '22 13:03 armanbilge

Note that all that jitpack requires is that the process outputs jars to ~/.m2/repository and allows to specify custom commands, thus, adding a jitpack.yml with the following might work (maybe require some tweaking to the paths, and adding a scala-cli script):

install:
  - ./scala-cli publish --server=false --publish-repository ~/.m2/repository main.scala 

rmgk avatar Apr 13 '22 14:04 rmgk