bulent2k2 / kojo-lib

Kojo as a library for any JVM language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kojo Lib

Kojo-Lib provides Kojo (the Scala based learning environment) as a library that you can use with:

  • Scala 3 or Scala 2.13.x, and any Scala IDE (Intellij IDEA, Visual Studio Code + Metals, etc).
  • Any JVM language (that is able to consume Java jar files).

Quick Start (for Scala / sbt)

Add the following dependency in your build.sbt file:

val kojoLibVersion = "0.1.0"
libraryDependencies += "net.kogics" % "kojo-lib" % kojoLibVersion from s"https://github.com/litan/kojo-lib/releases/download/v$kojoLibVersion/kojo-lib-assembly-$kojoLibVersion.jar"

Doing a manual build (for any JVM language)

  • Clone this repo.
  • Go into the repo dir in a terminal.
  • run ./sbt.sh buildDist.

This will give you two folders of interest:

  • dist - which contains jars that you can use (on the classpath) with any JVM language. Note - you can also use the latest kojo-lib-assembly-x.y.z.jar release jar in place of these jars.
  • dist-scala - which contains a couple of Scala jars that you need to include in your classpath for any language other than Scala.

Minimal sample client programs

Examples (mostly from the Kojo Showcase menu)

Published artifacts

Coming soon (jars published on maven central).


Enjoy!

About

Kojo as a library for any JVM language

License:Other


Languages

Language:Scala 86.1%Language:Java 13.9%Language:Shell 0.0%