{"id":37478007,"url":"https://github.com/labelzoom/labelzoom-moca-client-java","last_synced_at":"2026-01-16T07:23:20.949Z","repository":{"id":217033205,"uuid":"742969051","full_name":"labelzoom/labelzoom-moca-client-java","owner":"labelzoom","description":"MOCA client for Java","archived":false,"fork":false,"pushed_at":"2025-08-18T18:00:37.000Z","size":234,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-18T20:16:13.462Z","etag":null,"topics":["blue-yonder","blueyonder","jda","moca","redprairie"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/labelzoom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-13T22:47:07.000Z","updated_at":"2025-08-18T18:00:41.000Z","dependencies_parsed_at":"2024-01-14T07:20:28.424Z","dependency_job_id":"ccb30e09-c4cf-46eb-ba33-062ca586a5c0","html_url":"https://github.com/labelzoom/labelzoom-moca-client-java","commit_stats":null,"previous_names":["labelzoom/labelzoom-moca-client-java"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/labelzoom/labelzoom-moca-client-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labelzoom%2Flabelzoom-moca-client-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labelzoom%2Flabelzoom-moca-client-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labelzoom%2Flabelzoom-moca-client-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labelzoom%2Flabelzoom-moca-client-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/labelzoom","download_url":"https://codeload.github.com/labelzoom/labelzoom-moca-client-java/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labelzoom%2Flabelzoom-moca-client-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["blue-yonder","blueyonder","jda","moca","redprairie"],"created_at":"2026-01-16T07:23:20.252Z","updated_at":"2026-01-16T07:23:20.931Z","avatar_url":"https://github.com/labelzoom.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![LabelZoom Logo](docs/LabelZoom_Logo_f_400px.png)\n\n# labelzoom-moca-client-java\n\n[![Build Status](https://github.com/labelzoom/labelzoom-moca-client-java/actions/workflows/gradle-build.yml/badge.svg?branch=main)](https://github.com/labelzoom/labelzoom-moca-client-java/actions?query=branch%3Amain)\n[![Release](https://img.shields.io/github/release/labelzoom/labelzoom-moca-client-java.svg?style=flat-square)](https://github.com/labelzoom/labelzoom-moca-client-java/releases)\n[![codecov](https://codecov.io/gh/labelzoom/labelzoom-moca-client-java/graph/badge.svg?token=R1Z1Q2W4EF)](https://codecov.io/gh/labelzoom/labelzoom-moca-client-java)\n\nMOCA client for Java, sponsored by [LabelZoom](https://www.labelzoom.net).\n\n## Installation\n\n### Gradle\n#### Step 1\nAdd a new `maven` closure to your `repositories` section that points to this repository.\n```groovy\nrepositories {\n    mavenCentral() // You probably already have this\n    maven {\n        url = uri('https://maven.pkg.github.com/labelzoom/labelzoom-moca-client-java')\n        credentials {\n            username = project.findProperty('gpr.user') ?: System.getenv('GITHUB_ACTOR') // your GitHub username goes here\n            password = project.findProperty('gpr.key') ?: System.getenv('GITHUB_TOKEN') // your GitHub PAT (Personal Access Token) goes here\n        }\n    }\n}\n```\n\n#### Step 2\nAdd the dependency to your `implementation` dependencies:\n```groovy\ndependencies {\n    implementation 'com.labelzoom:labelzoom-moca-client-java:1.0.2'\n}\n```\n\n### Maven\nTODO\n\n## How To Use\nSee [tests](src/test) for more examples.\n\n### Nested _try-with-resources_\n```java\ntry (final MocaConnection conn = new HttpMocaConnection(url, userId, password))\n{\n    try (final ResultSet res = conn.execute(\"publish data where message = 'Hello World!'\"))\n    {\n        res.next();\n        System.out.println(\"Message: \" + res.getString(\"message\"));\n    }\n}\ncatch (final SQLException | IOException e)\n{\n    e.printStackTrace();\n}\n```\n\n### Single _try-with-resources_ with multiple resources\n```java\ntry (final MocaConnection conn = new HttpMocaConnection(url, userId, password);\n     final ResultSet res = conn.execute(\"publish data where message = 'Hello World!'\"))\n{\n    res.next();\n    System.out.println(\"Message: \" + res.getString(\"message\"));\n}\ncatch (final SQLException | IOException e)\n{\n    e.printStackTrace();\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabelzoom%2Flabelzoom-moca-client-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabelzoom%2Flabelzoom-moca-client-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabelzoom%2Flabelzoom-moca-client-java/lists"}