{"id":16884305,"url":"https://github.com/simolus3/build_license_collector","last_synced_at":"2025-03-20T05:21:46.295Z","repository":{"id":104030004,"uuid":"300963046","full_name":"simolus3/build_license_collector","owner":"simolus3","description":"Collects licenses for your Dart project, through build_runner","archived":false,"fork":false,"pushed_at":"2020-10-03T19:43:54.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-25T07:07:11.625Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","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/simolus3.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"publiccode":null,"codemeta":null}},"created_at":"2020-10-03T19:34:20.000Z","updated_at":"2020-10-09T15:46:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"3ba7a787-5961-46ec-a5cc-415069721a54","html_url":"https://github.com/simolus3/build_license_collector","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/simolus3%2Fbuild_license_collector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simolus3%2Fbuild_license_collector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simolus3%2Fbuild_license_collector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simolus3%2Fbuild_license_collector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simolus3","download_url":"https://codeload.github.com/simolus3/build_license_collector/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244554883,"owners_count":20471316,"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":[],"created_at":"2024-10-13T16:17:13.631Z","updated_at":"2025-03-20T05:21:46.290Z","avatar_url":"https://github.com/simolus3.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"A [builder](https://pub.dev/packages/build) collecting license information from your dependencies.\n\n## Usage\n\nThanks to [Dart's build system](https://pub.dev/packages/build_runner), using this package couldn't be\nany simpler. Just add this package and `build_runner` to your `dev_dependencies` and you're good to go:\n\n```yaml\ndev_dependencies:\n  build_license_collector: ^1.0.0\n  build_runner: ^2.4.0\n```\n\nAfter running `dart pub run build_runner build`, you'll have a `licenses.g.dart` file in your app's\n`lib/` directory.\n\n## Configuration\n\nBy default, license collection will happen across your regular `dependencies` since that's the code\nyou usually ship to users. If you want to, you can also include licenses of `dev_dependencies`.\nTo configure this builder, create a `build.yaml` next to your pubspec. It should have the following\ncontent:\n\n```yaml\ntargets:\n  $default:\n    builders:\n      build_license_collector:\n        include_dev_dependencies: true\n```\n\nYou can also change the path of the generated file:\n\n```yaml\ntargets:\n  $default:\n    builders:\n      build_license_collector:\n        output: lib/src/licenses.g.dart\n```\n\nThis package can also emit a JSON structure when the output extension is `.json`.\nThe generated structure looks like this, with the entries in `packages` pointing\nto a text index in `texts`.\n\n```json\n{\n  \"texts\": [\n    \"license for pgk foo and pkg baz\",\n    \"license for bar\",\n  ],\n  \"packages\": {\n    \"foo\": 0,\n    \"bar\": 1,\n    \"baz\": 0,\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimolus3%2Fbuild_license_collector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimolus3%2Fbuild_license_collector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimolus3%2Fbuild_license_collector/lists"}