https://github.com/finos/morphir-jvm
Tools to work with the Morphir IR on/using the JVM.
https://github.com/finos/morphir-jvm
Last synced: 6 months ago
JSON representation
Tools to work with the Morphir IR on/using the JVM.
- Host: GitHub
- URL: https://github.com/finos/morphir-jvm
- Owner: finos
- License: apache-2.0
- Created: 2020-02-26T14:39:30.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2025-05-27T14:13:12.000Z (8 months ago)
- Last Synced: 2025-05-27T15:29:57.401Z (8 months ago)
- Language: Scala
- Homepage:
- Size: 2.3 MB
- Stars: 23
- Watchers: 9
- Forks: 24
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Morphir JVM binding
This repo contains tools to work with the Morphir IR on the JVM. It will include data models for the IR, JSON serialization and developer tooling.
## Prerequisites
Install [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) on your system, then in the root of the project run:
```bash
npm install morphir-elm
```
## How to build and test
Morphir-jvm use [mill]("http://www.lihaoyi.com/mill/) as its build tool.
### BSP Setup
If you are using Visual Studio Code, IntelliJ, or any of the Editors which support BSP you can also generate BSP config files via:
```bash
./mill mill.bsp.BSP/install
```
### IntelliJ Setup for Linux
If you are using IntelliJ IDEA to edit morphir-jvm's Scala code, you can create the
IntelliJ project files via:
```bash
./mill mill.scalalib.GenIdea/idea
```
### Run Tests
Run all tests:
```bash
./mill __.test
```
or in watch mode:
```bash
./mill -w __.test
```
### Formatting Code
Code needs to be formatted according to `scalafmt` rules. To run `scalafmt` on all the source code using:
```bash
./mill mill.scalalib.scalafmt.ScalafmtModule/reformatAll __.sources
```
or in watch mode to reformat changed files:
```bash
./mill -w mill.scalalib.scalafmt.ScalafmtModule/reformatAll __.sources
```
#
### IntelliJ Setup for Windows
If you are using IntelliJ IDEA to edit morphir-jvm's Scala code, you can create the
IntelliJ project files via:
```
.\mill mill.scalalib.GenIdea/idea
```
### BSP Setup
If you are using Visual Studio Code, IntelliJ, or any of the Editors which support BSP you can also generate BSP config files via:
```
.\mill mill.bsp.BSP/install
```
### Run Tests
```
.\mill __.test
```
or in watch mode:
```
.\mill -w __.test
```
### Formatting Code
Code needs to be formatted according to `scalafmt` rules. To run `scalafmt` on all the source code using:
```
.\mill mill.scalalib.scalafmt.ScalafmtModule/reformatAll __.sources
```
or in watch mode to reformat changed files:
```
.\mill -w mill.scalalib.scalafmt.ScalafmtModule/reformatAll __.sources
```
# Contributing
* [Creating a new release](docs/release.md)