{"id":24901738,"url":"https://github.com/antonsjava/deps-size-plugin","last_synced_at":"2025-07-21T12:33:26.649Z","repository":{"id":223023129,"uuid":"758990206","full_name":"antonsjava/deps-size-plugin","owner":"antonsjava","description":"maven plugin for calculating artifacts size","archived":false,"fork":false,"pushed_at":"2024-02-17T17:47:50.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T18:19:46.358Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/antonsjava.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-17T17:01:48.000Z","updated_at":"2024-11-30T05:02:26.000Z","dependencies_parsed_at":"2024-02-17T18:48:50.993Z","dependency_job_id":null,"html_url":"https://github.com/antonsjava/deps-size-plugin","commit_stats":null,"previous_names":["antonsjava/deps-size-plugin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/antonsjava/deps-size-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonsjava%2Fdeps-size-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonsjava%2Fdeps-size-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonsjava%2Fdeps-size-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonsjava%2Fdeps-size-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antonsjava","download_url":"https://codeload.github.com/antonsjava/deps-size-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonsjava%2Fdeps-size-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266302764,"owners_count":23908220,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-02-01T21:17:34.972Z","updated_at":"2025-07-21T12:33:26.419Z","avatar_url":"https://github.com/antonsjava.png","language":"Java","readme":"# deps-size-plugin\n\n Maven plugin for calculating artifacts size.\n\n It is similar to **dependency:tree** but prints also size of artifact.  Artifact is displayed\n like \"org.slf4j:slf4j-api:jar:1.7.36 \u003c41.125, 41.125\u003e\" where first number is size of \n artifact jar and second one is calculated sum of dependences (by default with runtime scope).\n\n Calculated sum can be wrong as same artifact can be more time counted in dependence tree.\n Also single jar packaging can duplicate size. \n\n But it is useful to identify candidates to exclude from class path.\n\n Example for this plugin \n ```\n[INFO] io.github.antonsjava:deps-size-plugin:maven-plugin:1.0 \u003c21.345, 250.907\u003e\n[INFO] +- org.apache.maven.shared:maven-dependency-tree:jar:3.2.1 \u003c42.608, 229.562\u003e\n[INFO]    +- org.eclipse.aether:aether-util:jar:1.0.0.v20140518 \u003c145.829, 145.829\u003e\n[INFO]    +- org.slf4j:slf4j-api:jar:1.7.36 \u003c41.125, 41.125\u003e\n ```\n\n## usage\n\ntree view (scope=runtime, order by brutto size)\n```\nmvn io.github.antonsjava:deps-size-plugin::tree \n```\n\nlist view (scope=runtime, order by brutto size)\n```\nmvn io.github.antonsjava:deps-size-plugin::list \n```\n\n\nYou can change sort by netto by **-Dnetto=true** param \n\n\nYou can set another scope by **-Dscope=compile**. Possible scopes are  'runtime' (default), \n'compile+runtime', 'test', 'compile', 'runtime+system', 'provided', 'system', 'import'.\n\n\nor you can define script like \n```\n\n#!/bin/bash\n\nfunction helpinfo() {\n\techo \"Prints \u003cnetto size, brutto size\u003e of depended artifacts \"\n\techo \"Netto size is size of jar file in local repo. Brutto size \"\n\techo \"is sum of brutto size of dependaces. Real sum can be less\" \n\techo \"because same artifact can be counted more than one time.\" \n\techo \"\"\n\techo \"Usage:\"\n\techo \"  mvn-size.sh [-h|--help] [-list] [-netto] [-Dscope=\u003cscope\u003e]\"\n\techo \"    -h|--help prints help\"\n\techo \"    -list prints list instead of tree\"\n\techo \"    -netto sort by netto size instead of cumulated\"\n\techo \"    -Dscope=\u003cscope\u003e define scope for resolving artifacts\"\n\techo \"       scope can be 'runtime' (default), 'compile+runtime'\"\n\techo \"       'test', 'compile', 'runtime+system', 'provided'\"\n\techo \"       'system', 'import'\"\n}\n\nparam1=$1\nparam2=$2\n\nparams=\nname=tree\n\nwhile [ \"$#\" -gt 0 ]; do\n  case \"$1\" in\n    -h) helpinfo; exit 1;;\n    --help) helpinfo; exit 1;;\n    -list) name=list; shift 1;;\n    -netto) params=\"$params -Dnetto=true\"; shift 1;;\n    *) params=\"$params $1\"; shift 1;;\n  esac\ndone\n\necho \"starting\"\necho \"mvn io.github.antonsjava:deps-size::$name $params\"\nmvn io.github.antonsjava:deps-size-plugin::$name $params\n```\n\n \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonsjava%2Fdeps-size-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantonsjava%2Fdeps-size-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonsjava%2Fdeps-size-plugin/lists"}