Manifold Example Project
Why?
To play with Manifold from scratch and see how it works.
For a full feature example, see the official manifold-sample-project.
What?
Currently, we have 3 examples in that project:
- JSON Schema Manifold
- Properties Manifold
- String Templating
To see, how it could look inside your code, see MainApp.java for examples.
How?
- Install IntelliJ plugin for Manifold and restart IDE
- Create empty maven project
- Add manifold dependency:
<dependency> <groupId>systems.manifold</groupId> <artifactId>manifold-all</artifactId> <version>${manifold.version}</version> </dependency>
- Configure the compiler plugin:
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> <encoding>UTF-8</encoding> <compilerArgs> <arg>-Xplugin:Manifold strings</arg> </compilerArgs> <annotationProcessorPaths> <path> <groupId>systems.manifold</groupId> <artifactId>manifold-all</artifactId> <version>${manifold.version}</version> </path> </annotationProcessorPaths> </configuration> </plugin> </plugins> </build>
- Create some JSON schemas or properties
- Write your code and access the types via autocompletion.