-
Download and setup Java 11. You could use sdkman to do so
-
Add a config file to
~/.nsl/
directory with namensl-api-config.groovy
-
Have graphql engine running on any port. Can be configured in config file above
-
A Graphql metadata is managed in hasura-config repository in ibis cloud
#!/bin/bash
sdk install java 11.0.11.hs-adpt
sdk default java 11.0.11.hs-adpt
Use the ./run-api.sh
script to run the project
It checks if Java 11 is available on the running machine and exit if it does not exist.
It also sets some environment variables
Run tests using the ./test-api.sh
script
You can load the project in IntelliJ as a Gradle project and create a run configuration as a Micronaut
or Gradle
application.
You can simply run the project using the play
button once all dependencies are resolved.
We use Semantic Version Plugin for Gradle for version changes.
We can use incrementMajor
, incrementMinor
and incrementPatch
gradle tasks to automatically increment version numbers
./gradlew incrementPatch ...
Name |
nslapi |
Main Class |
|
VM Options |
|
Environment vars |
|
JDK/JRE |
11 |
Run |
|
Gradle project |
api |
Env Vars |
|