{"id":13511776,"url":"https://github.com/JodaOrg/joda-money","last_synced_at":"2025-03-30T21:30:48.633Z","repository":{"id":1482069,"uuid":"1728400","full_name":"JodaOrg/joda-money","owner":"JodaOrg","description":"Java library to represent monetary amounts.","archived":false,"fork":false,"pushed_at":"2024-10-12T22:10:47.000Z","size":1045,"stargazers_count":659,"open_issues_count":8,"forks_count":118,"subscribers_count":26,"default_branch":"main","last_synced_at":"2024-10-29T22:37:26.897Z","etag":null,"topics":["java","joda","joda-money","money"],"latest_commit_sha":null,"homepage":"http://www.joda.org/joda-money/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JodaOrg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"jodastephen","open_collective":"joda","tidelift":"maven/org.joda:joda-money"}},"created_at":"2011-05-10T14:55:09.000Z","updated_at":"2024-10-17T04:17:02.000Z","dependencies_parsed_at":"2023-11-08T04:06:18.441Z","dependency_job_id":"ff3f7d3e-5bc6-4e34-b4c8-1f533b6abc33","html_url":"https://github.com/JodaOrg/joda-money","commit_stats":{"total_commits":383,"total_committers":27,"mean_commits":"14.185185185185185","dds":0.08877284595300261,"last_synced_commit":"7fdd8a38aace473bf655004500773da893bcd378"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JodaOrg%2Fjoda-money","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JodaOrg%2Fjoda-money/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JodaOrg%2Fjoda-money/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JodaOrg%2Fjoda-money/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JodaOrg","download_url":"https://codeload.github.com/JodaOrg/joda-money/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245268604,"owners_count":20587634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","joda","joda-money","money"],"created_at":"2024-08-01T03:01:10.438Z","updated_at":"2025-03-30T21:30:48.627Z","avatar_url":"https://github.com/JodaOrg.png","language":"Java","funding_links":["https://github.com/sponsors/jodastephen","https://opencollective.com/joda","https://tidelift.com/funding/github/maven/org.joda:joda-money","https://tidelift.com/badges/github/JodaOrg/joda-money","https://tidelift.com/subscription/pkg/maven-org-joda-joda-money?utm_source=maven-org-joda-joda-money\u0026utm_medium=github","https://tidelift.com/security"],"categories":["Java"],"sub_categories":[],"readme":"Joda-Money\n----------\n\nJoda-Money provides a library of classes to store amounts of money.\n\nJoda-Money does not provide, nor is it intended to provide, monetary algorithms beyond the most basic and obvious.\nThis is because the requirements for these algorithms vary widely between domains.\nThis library is intended to act as the base layer, providing classes that should be in the JDK.\n\nAs a flavour of Joda-Money, here's some example code:\n\n```java\n// create a monetary value\nMoney money = Money.parse(\"USD 23.87\");\n\n// add another amount with safe double conversion\nCurrencyUnit usd = CurrencyUnit.of(\"USD\");\nmoney = money.plus(Money.of(usd, 12.43d));\n\n// subtracts an amount in dollars\nmoney = money.minusMajor(2);\n\n// multiplies by 3.5 with rounding\nmoney = money.multipliedBy(3.5d, RoundingMode.DOWN);\n\n// compare two amounts\nboolean bigAmount = money.isGreaterThan(dailyWage);\n\n// convert to GBP using a supplied rate\nBigDecimal conversionRate = ...;  // obtained from code outside Joda-Money\nMoney moneyGBP = money.convertedTo(CurrencyUnit.GBP, conversionRate, RoundingMode.HALF_EVEN);\n\n// use a BigMoney for more complex calculations where scale matters\nBigMoney moneyCalc = money.toBigMoney();\n```\n\nUsers are reminded that this software, like all open source software, is provided\non an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.\n\nJoda-Money is licensed under the business-friendly [Apache 2.0 licence](https://www.joda.org/joda-money/licenses.html).\n\n\n### Documentation\nVarious documentation is available:\n\n* The [home page](https://www.joda.org/joda-money/)\n* The helpful [user guide](https://www.joda.org/joda-money/userguide.html)\n* The [Javadoc](https://www.joda.org/joda-money/apidocs/index.html)\n* The change notes for the [releases](https://www.joda.org/joda-money/changes-report.html)\n\n\n### Releases\nThe 2.x branch is compatible with Java SE 21 or later.\n\nThe 1.x branch is compatible with Java SE 8 or later.\n\nv2.x releases are compatible with v1.x releases - except for the Java SE version and `module-info.class` file.\n\nJoda-Money has no mandatory dependencies.\nThere is a *compile-time* dependency on [Joda-Convert](https://www.joda.org/joda-convert/),\nbut this is not required at runtime thanks to the magic of annotations.\n\nAvailable in the [Maven Central repository](https://search.maven.org/search?q=g:org.joda%20AND%20a:joda-money\u0026core=gav)\n\n![Tidelift dependency check](https://tidelift.com/badges/github/JodaOrg/joda-money)\n\n\n### For enterprise\nAvailable as part of the Tidelift Subscription.\n\nJoda and the maintainers of thousands of other packages are working with Tidelift to deliver one enterprise subscription that covers all of the open source you use.\n\nIf you want the flexibility of open source and the confidence of commercial-grade software, this is for you.\n\n[Learn more](https://tidelift.com/subscription/pkg/maven-org-joda-joda-money?utm_source=maven-org-joda-joda-money\u0026utm_medium=github)\n\n\n### Support\nPlease use [Stack Overflow](https://stackoverflow.com/questions/tagged/joda-money) for general usage questions.\nGitHub [issues](https://github.com/JodaOrg/joda-money/issues) and [pull requests](https://github.com/JodaOrg/joda-money/pulls)\nshould be used when you want to help advance the project.\n\nAny donations to support the project are accepted via [OpenCollective](https://opencollective.com/joda).\n\nTo report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security).\nTidelift will coordinate the fix and disclosure.\n\n\n### Release process\n\n* Update version (index.md, changes.xml)\n* Commit and push\n* `git push origin HEAD:refs/tags/release`\n* Code and Website will be built and released by GitHub Actions\n\nRelease from local:\n\n* Turn off gpg \"bc\" signer\n* `mvn clean release:clean release:prepare release:perform`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJodaOrg%2Fjoda-money","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJodaOrg%2Fjoda-money","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJodaOrg%2Fjoda-money/lists"}