{"id":21430075,"url":"https://github.com/cuba-platform/yarg-demo","last_synced_at":"2025-03-16T21:44:44.643Z","repository":{"id":150932343,"uuid":"105203750","full_name":"cuba-platform/yarg-demo","owner":"cuba-platform","description":"Simple YARG library demo","archived":false,"fork":false,"pushed_at":"2017-09-28T22:17:13.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T08:19:25.863Z","etag":null,"topics":["java","reporting","reporting-engine","yarg"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cuba-platform.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-28T22:07:11.000Z","updated_at":"2018-03-31T18:18:48.000Z","dependencies_parsed_at":"2023-04-28T00:01:37.146Z","dependency_job_id":null,"html_url":"https://github.com/cuba-platform/yarg-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuba-platform%2Fyarg-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuba-platform%2Fyarg-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuba-platform%2Fyarg-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuba-platform%2Fyarg-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cuba-platform","download_url":"https://codeload.github.com/cuba-platform/yarg-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243940062,"owners_count":20372044,"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","reporting","reporting-engine","yarg"],"created_at":"2024-11-22T22:20:33.846Z","updated_at":"2025-03-16T21:44:44.618Z","avatar_url":"https://github.com/cuba-platform.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simple YARG library demo\n========================\n\nSee main YARG repository: https://github.com/cuba-platform/yarg\n\nHere we easily enable YARG using JCenter repository:\n```\nrepositories {\n    jcenter()\n}\n\napply plugin: 'java'\n\ndependencies {\n    compile 'com.haulmont.yarg:yarg:2.0.7'\n}\n```\n\nAfter that we can prepare report XML description, XLSX report template and run report using YARG:\n\n```java\nReport report = new DefaultXmlReader()\n        .parseXml(IOUtils.toString(IncomesDemo.class.getResource(\"/incomes-report.xml\")));\n\nReporting reporting = new Reporting();\nreporting.setFormatterFactory(new DefaultFormatterFactory());\nreporting.setLoaderFactory(new DefaultLoaderFactory()\n        .setGroovyDataLoader(new GroovyDataLoader(new DefaultScriptingImpl())));\n\nReportOutputDocument reportOutputDocument = reporting.runReport(\n                new RunParams(report), new FileOutputStream(resultFile));\n```\n\nThat's it!\n\nStart demo:\n\n    \u003e gradlew run\n\nSee template and result in ./work directory","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuba-platform%2Fyarg-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuba-platform%2Fyarg-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuba-platform%2Fyarg-demo/lists"}