Table of contents
  1. Docs
  2. Project Examples
  3. Type Handlers
  4. Tid-Bits
    1. Copy Object
  5. Running
  6. GUI
    1. Run downloadable jar
  7. Lombok
  8. GraalVM
    1. Configuration
    2. Create native image
    3. Run Native Image in Dev
  9. Resources
    1. Micronaut 3.7.2 Documentation
      1. User Guide
      2. API Reference
      3. Configuration Reference
      4. Micronaut Guides
    2. Gradle
      1. Shadow Gradle Plugin
      2. Gradle plugin for GraalVM Native Image building : Config Doc
      3. Gradle Plugin for Micronaut : io.micronaut.graalvm
    3. GraalVM
      1. Micronaut Docs: GraalVM
      2. GraalVM Docs : Reflection
      3. reflect-config.json Graal SourceCode
    4. Microstream documentation
      1. Micronaut MicroStream documentation
      2. https://microstream.one/
      3. Microstream-REST documentation
        1. Micronaut MicroStream REST documentation
        2. https://docs.microstream.one/manual/storage/rest-interface/index.html
    5. HTTP-client documentation
      1. Micronaut HTTP Client documentation
    6. Security-JWT documentation
      1. Micronaut Security JWT documentation
    7. Resources
      1. Micronaut Documentation
      2. GraalVM
      3. Microstream documentation
        1. Microstream-REST documentation
      4. HTTP-client documentation
      5. Security-JWT documentation




Project Examples

Type Handlers

Tid-Bits

Copy Object

public class Copy {
    ObjectCopier objectCopier = ObjectCopier.New();

    Customer customer = root.getCustomer(id);

    Customer customerCopy = objectCopier.copy(customer);
}

Running

./gradlew run
*** Use in build.gradle to run in dev ***
 run {
    systemProperty('micronaut.environments', 'dev')
}

GUI

Micronaut Enable Rest API

add to build.gradle

developmentOnly("io.micronaut.microstream:micronaut-microstream-rest")

add to application.yml

microstream:
  rest:
    enabled: true

Run downloadable jar

Direct Downlond

java -jar microstream-storage-restclient-app-08.01.02-MS-GA.jar --server.port=8888

Then just open http://localhost:8888 in your browser, select the base URL of the REST service and click connect.

Lombok

*** Needs to be above micronaut annotations on classpath ***
*** For lombok to recognize micronaut annotations and inject into constructor ***

create lombok.config at root

insert line:

lombok.copyableannotations += io.micronaut.core.annotation.Nullable

GraalVM

Configuration

To run with GraalVM add:

reflect-config.json to /src/main/resources/META-INF/native-image/[package]
so Graal recognizes imported classes that need to be reflective

touch /src/main/resources/META-INF/native-image/com/ssi/reflect-config.json

Create native image

./gradlew nativeCompile

Run Native Image in Dev

./build/native/nativeCompile/graal-vm-ssi -Dmicronaut.environments=dev

Resources

Micronaut 3.7.2 Documentation

User Guide

API Reference

Configuration Reference

Micronaut Guides

Gradle

Shadow Gradle Plugin

Gradle plugin for GraalVM Native Image building : Config Doc

Gradle Plugin for Micronaut : io.micronaut.graalvm

GraalVM

Micronaut Docs: GraalVM

GraalVM Docs : Reflection

reflect-config.json Graal SourceCode

Microstream documentation

Micronaut MicroStream documentation

https://microstream.one/

Microstream-REST documentation

Micronaut MicroStream REST documentation

https://docs.microstream.one/manual/storage/rest-interface/index.html

HTTP-client documentation

Micronaut HTTP Client documentation

Security-JWT documentation

Micronaut Security JWT documentation

Resources

Micronaut Documentation


GraalVM

Microstream documentation

Microstream-REST documentation

HTTP-client documentation

Security-JWT documentation