{"id":24937134,"url":"https://github.com/unknownnpc/json-compressor-maven-plugin","last_synced_at":"2026-01-11T17:02:15.007Z","repository":{"id":18223202,"uuid":"83470992","full_name":"UnknownNPC/json-compressor-maven-plugin","owner":"UnknownNPC","description":"Plugin removes useless whitespaces and newlines in target json files","archived":false,"fork":false,"pushed_at":"2025-01-17T20:17:45.000Z","size":49,"stargazers_count":1,"open_issues_count":2,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T01:13:51.516Z","etag":null,"topics":["json","maven-plugin","newline","whitespace"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UnknownNPC.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":null,"security":null,"support":null}},"created_at":"2017-02-28T19:28:37.000Z","updated_at":"2023-04-04T15:13:13.000Z","dependencies_parsed_at":"2022-09-10T21:50:09.147Z","dependency_job_id":null,"html_url":"https://github.com/UnknownNPC/json-compressor-maven-plugin","commit_stats":null,"previous_names":["unknownnpc/json-to-string-maven-plugin"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnknownNPC%2Fjson-compressor-maven-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnknownNPC%2Fjson-compressor-maven-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnknownNPC%2Fjson-compressor-maven-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnknownNPC%2Fjson-compressor-maven-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UnknownNPC","download_url":"https://codeload.github.com/UnknownNPC/json-compressor-maven-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137891,"owners_count":21053775,"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":["json","maven-plugin","newline","whitespace"],"created_at":"2025-02-02T16:58:19.369Z","updated_at":"2026-01-11T17:02:15.000Z","avatar_url":"https://github.com/UnknownNPC.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![codecov](https://codecov.io/gh/UnknownNPC/json-compressor-maven-plugin/branch/master/graph/badge.svg)](https://codecov.io/gh/UnknownNPC/json-compressor-maven-plugin)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.unknownnpc.plugins/json-compressor/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.unknownnpc.plugins/json-compressor)\n\njson-compressor-maven-plugin\n=====================\n\n## Overview\nPlugin removes useless whitespaces and newlines in target json files. \nIt helps to reduce file sizes before they get packaged.\n\n## Content\n \n#### Install  \nRequires Java 1.11 and Maven 3.x+\n```\nmvn clean install\n```\n\n#### Usage in pom.xml\n```\n\u003cplugin\u003e\n\t\u003cgroupId\u003ecom.github.unknownnpc.plugins\u003c/groupId\u003e\n\t\u003cartifactId\u003ejson-compressor\u003c/artifactId\u003e\n\t\u003cversion\u003e1.3\u003c/version\u003e\n\t\u003cexecutions\u003e\n\t\t\u003cexecution\u003e\n\t\t\t\u003cgoals\u003e\n\t\t\t\t\u003cgoal\u003eminify\u003c/goal\u003e\n\t\t\t\u003c/goals\u003e\n\t\t\u003c/execution\u003e\n\t\u003c/executions\u003e\n\t\u003cconfiguration\u003e\n\t\t\u003cincludes\u003e\n\t\t\t\u003cinclude\u003e${project.build.directory}/classes/large-file.json\u003c/include\u003e\n\t\t\t\u003cinclude\u003e${project.build.directory}/classes/large-files-*.json\u003c/include\u003e\n\t\t\u003c/includes\u003e\n\t\t\u003cexcludes\u003e\n\t\t\t\u003cexclude\u003e${project.build.directory}/classes/large-files-3.json\u003c/exclude\u003e\n\t\t\u003c/excludes\u003e\n\t\u003c/configuration\u003e\n\u003c/plugin\u003e\n```\n\nPlugin is also support `skip` configuration parameter, eg. `\u003cconfiguration\u003e\u003cskip\u003etrue\u003c/skip\u003e\u003c/configuration\u003e`. \n\n#### Run\n```\nmvn com.github.unknownnpc.plugins:json-compressor:minify\n```\n## Example\n\n##### Before\n```\n{\n    \"id\": 1,\n    \"name\": \"A green door\",\n    \"price\": 12.50,\n    \"tags\": [\"home\", \"green\"]\n}\n```\n##### After\n```\n{\"id\":1,\"name\":\"A green door\",\"price\":12.5,\"tags\":[\"home\",\"green\"]}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funknownnpc%2Fjson-compressor-maven-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funknownnpc%2Fjson-compressor-maven-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funknownnpc%2Fjson-compressor-maven-plugin/lists"}