Moneta is the reference implementation (RI) of the JSR 354 Money & Currency API and provides:
- Monetary amounts: fixed sized
FastMoney
andMoney
for big amounts. - Currency conversion and rate providers.
- Custom currencies support like the Bitcoin.
See Moneta User Guide for an introduction.
You can access the RI by adding the following Maven dependencies:
<dependency>
<groupId>org.javamoney</groupId>
<artifactId>moneta</artifactId>
<version>1.4.5</version>
<type>pom</type>
</dependency>
The same for Gradle:
compile group: 'org.javamoney', name: 'moneta', version: '1.4.5', ext: 'pom'
SBT:
libraryDependencies += "org.javamoney" % "moneta" % "1.4.5" pomOnly()
The release artifacts are accessible from Maven Central.
- Moneta up to 1.4.x: Java SE 8 or higher
- Moneta 1.5.x: Java SE 11 or higher
Ask your question at StackOverflow with tag java-money or join the Gitter chat.