{"id":19901846,"url":"https://github.com/hyperledger/fabric-chaincode-java","last_synced_at":"2025-05-14T23:06:51.100Z","repository":{"id":37493189,"uuid":"99034741","full_name":"hyperledger/fabric-chaincode-java","owner":"hyperledger","description":"Hyperledger Fabric Contract and Chaincode implementation for Java","archived":false,"fork":false,"pushed_at":"2025-04-04T14:15:53.000Z","size":5729,"stargazers_count":310,"open_issues_count":15,"forks_count":207,"subscribers_count":26,"default_branch":"main","last_synced_at":"2025-05-08T10:53:08.975Z","etag":null,"topics":["hacktoberfest","hyperledger","hyperledger-fabric","java","smart-contracts"],"latest_commit_sha":null,"homepage":"https://hyperledger.github.io/fabric-chaincode-java/","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/hyperledger.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-01T19:13:14.000Z","updated_at":"2025-04-25T23:48:44.000Z","dependencies_parsed_at":"2024-04-16T17:34:16.346Z","dependency_job_id":"7f531aa3-fda3-41f7-ab66-0a7687bccbab","html_url":"https://github.com/hyperledger/fabric-chaincode-java","commit_stats":null,"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperledger%2Ffabric-chaincode-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperledger%2Ffabric-chaincode-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperledger%2Ffabric-chaincode-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperledger%2Ffabric-chaincode-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperledger","download_url":"https://codeload.github.com/hyperledger/fabric-chaincode-java/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254243362,"owners_count":22038046,"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":["hacktoberfest","hyperledger","hyperledger-fabric","java","smart-contracts"],"created_at":"2024-11-12T20:16:23.007Z","updated_at":"2025-05-14T23:06:46.078Z","avatar_url":"https://github.com/hyperledger.png","language":"Java","readme":"# Hyperledger Fabric Chaincode Java\n\n[![Build Status](https://dev.azure.com/Hyperledger/Fabric-Chaincode-Java/_apis/build/status/Fabric-Chaincode-Java?branchName=main)](https://dev.azure.com/Hyperledger/Fabric-Chaincode-Java/_build/latest?definitionId=39\u0026branchName=main)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.hyperledger.fabric-chaincode-java/fabric-chaincode-shim/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.hyperledger.fabric-chaincode-java/fabric-chaincode-shim)\n[![Discord](https://img.shields.io/discord/905194001349627914?label=discord)](https://discordapp.com/channels/905194001349627914/943090527920877598)\n\nThis is a Java based implementation of Hyperledger Fabric chaincode shim APIs, which enables development of smart contracts using the Java language.\n\nThis project creates `fabric-chaincode-shim` jar\nfiles for developers' consumption and the `hyperledger/fabric-javaenv` docker image\nto run Java chaincode.\n\n## Getting Started\n\nApplication developers interested in developing Java smart contracts for Hyperledger Fabric should read the [JavaDoc](https://hyperledger.github.io/fabric-chaincode-java/) which includes download information, and links to documentation and samples.\n\n## Project structure\n\n### fabric-chaincode-shim\n\nContains the java shim classes that define Java chaincode API and way to communicate with Fabric peers.\n\n### fabric-chaincode-docker\n\nContains instructions to build the `hyperledger/fabric-javaenv` docker image.\n\n### fabric-chaincode-integration-test\n\nContains higher level tests for Java chaincode.\n\n\u003e **Note:** in the future these should be replaced with a separate suite of [Cucumber](https://cucumber.io) tests which run against all chaincode implementations.\n\n### examples\n\nThe following technical examples are in this repository. Please see the tutorials in the [documentation](https://hyperledger-fabric.readthedocs.io/en/latest/tutorials.html)\n\n\n- **fabric-contract-example-gradle**  -  Contains an example Java contract built using gradle\n- **fabric-contract-example-maven**  -  Contains an example Java contract built using maven\n- **fabric-contract-example-gradle-kotlin**  -  Contains an example Kotlin contract build using gradle (Kotlin gradle files)\n- **fabric-chaincode-example-sacc**  -  Contains an example java chaincode gradle project that includes sample chaincode and basic gradle build instructions.\n- **fabric-chaincode-example-sbe**  -  Contains an example java chaincode gradle project that includes state based endorsement\n\n## 'dev' main branch builds\n\nThese 'dev' drivers are built from the main branch only, and have a version format including the date for example `2.3.1.dev.20210303`.\nThey are published to Artifactory. These can be accessed via the repository at\n```\n    maven {\n        url \"https://hyperledger.jfrog.io/hyperledger/fabric-maven\"\n    }\n```\n\nThey can be accessed in a build file like this\n\n```\ndependencies {\n    compile group: 'org.hyperledger.fabric-chaincode-java', name: 'fabric-chaincode-shim', version: '2.3.1.dev.+'\n }\n```\n\n\n## Building and testing\n\nMake sure you have the following prereqs installed:\n\n- [Docker](https://www.docker.com/get-docker)\n- [Docker Compose](https://docs.docker.com/compose/install/)\n- [JDK 11](https://adoptium.net/)\n\n\u003e **Note:** Java can be installed using [sdkman](https://sdkman.io/).\n\nClone the repository if you haven't already.\n\n```\ngit clone https://github.com/hyperledger/fabric-chaincode-java.git\n```\n\nBuild java shim jars (proto and shim jars) and install them to local maven repository.\n\n```\ncd fabric-chaincode-java\n./gradlew clean build install\n```\n\n\u003e **Note:** `./gradlew clean build classes` can be used instead to reduce the binaries that are built. This should be sufficient for using the local repository.\n\nBuild javaenv docker image, to have it locally.\n\n```\n./gradlew buildImage\n```\n\n## Compatibility\n\nFor details on what Java runtime and versions of Hyperledger Fabric can be used please see the [compatibility document](COMPATIBILITY.md).\n\n---\n\n[![Creative Commons License](https://i.creativecommons.org/l/by/4.0/88x31.png)](http://creativecommons.org/licenses/by/4.0/)  \nThis work is licensed under a [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperledger%2Ffabric-chaincode-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperledger%2Ffabric-chaincode-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperledger%2Ffabric-chaincode-java/lists"}