The recommended way to get started using Morphia in your project is with a dependency management system such as maven or gradle. To use Morphia using either build tool, you will need to update your build configurations with the following information.
<dependencies> <dependency> <groupId>dev.morphia.morphia</groupId> <artifactId>morphia-core</artifactId> <version>2.0.0-SNAPSHOT</version> </dependency> </dependencies> <repositories> <repository> <id>sonatype-snapshots</id> <name>Sontatype Snapshots</name> <url>https://oss.sonatype.org/content/repositories/snapshots</url> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories>
Morphia 2.0 requires Java 11 or greater. Morphia has been tested on mongodb servers as old as 3.6.15 up through the most recent builds. Morphia will likely work on older servers versions but those remain untested and no guarantees are made.