{"id":20741881,"url":"https://github.com/ajrnz/mill-dgraph","last_synced_at":"2025-04-24T03:46:49.875Z","repository":{"id":144517822,"uuid":"121671335","full_name":"ajrnz/mill-dgraph","owner":"ajrnz","description":null,"archived":false,"fork":false,"pushed_at":"2018-04-29T16:13:22.000Z","size":214,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-24T03:46:42.825Z","etag":null,"topics":["mill","mill-plugin"],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ajrnz.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,"publiccode":null,"codemeta":null}},"created_at":"2018-02-15T19:19:56.000Z","updated_at":"2022-08-24T08:14:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"72796c0a-f6a5-4556-ba2b-d435a3542e2a","html_url":"https://github.com/ajrnz/mill-dgraph","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajrnz%2Fmill-dgraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajrnz%2Fmill-dgraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajrnz%2Fmill-dgraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajrnz%2Fmill-dgraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajrnz","download_url":"https://codeload.github.com/ajrnz/mill-dgraph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250560007,"owners_count":21450168,"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":["mill","mill-plugin"],"created_at":"2024-11-17T06:43:16.524Z","updated_at":"2025-04-24T03:46:49.865Z","avatar_url":"https://github.com/ajrnz.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"mill-dgraph\n===========\n\n[![Build Status](https://travis-ci.org/ajrnz/mill-dgraph.svg?branch=master)](https://travis-ci.org/ajrnz/mill-dgraph)\n\n**dgraph** is a [mill](https://github.com/lihaoyi/mill) build tool plugin (well, not really, mill doesn't have\nproper plugins yet but it's still pretty easy to use). It analyses project artifact dependencies \n(like [sbt-dependency-graph](https://github.com/jrudolph/sbt-dependency-graph)) and presents them in \ngraphical form.\n\n\u003cimg src=\"./wiki-images/example1.png\" alt=\"Drawing\" style=\"width: 800px;\"/\u003e\n\nIt shows how your projects relate and which dependencies they are pulling in. Evictions are also shown but \ncan be disabled for a clearer view. You can see sizes of all code and source jars to estimate how big your project is\ngetting and which dependencies are contributing the most.\n\nClicking on a dependency shows all it's ancestors and descendants \n\nThe web page part works offline - artifact resolution may want internet access\n\n\n## Usage \n\nMill is under rapid development and it is unlikely that the API will stabilize for a while, this might mean there are \nincompatibilities between the mill version you are using and this 'plugin'. I'll try to keep dgraph up to date with the newest\nmill releases.\n\nTo use the plugin you need to add the following to your `build.sc` file.\n\n    import $ivy.`com.github.ajrnz::mill-dgraph:0.2.0`\n\n    val dgraph = plugin.dgraph \n   \nThe first line loads the library and the second brings it into the local scope for easy access.\n\nYou can then run the following from inside the _mill build REPL_ where `proj` is the name of a project (`ScalaModule`). \n\n    dgraph.browseDeps(proj)()\n    \nThis will open a browser window with a tree like the one above.\n\nIf you would like to view the dependencies due to an arbitrary set of dependencies try,\n\n    dgraph.browseDeps(proj, \"com.typesafe.play::play:2.6.11\")() \n    \nNote: that you still need to supply a reference project. Details like the scala version and repositories are extracted\nfrom this project during the resolution process.\n\nThe input format for the dependency is fairly lenient. ie all the following are valid:\n\n    dgraph.browseDeps(proj, \"com.typesafe.play::play:2.6.11\")() \n    dgraph.browseDeps(proj, \"\"\"ivy\"com.typesafe.play::play:2.6.11\"\"\"\")() \n    dgraph.browseDeps(proj, \"\"\"\"com.typesafe.play\" %% \"play\" % \"2.6.11\"\"\"\"\")() \n    dgraph.browseDeps(proj, \"com.typesafe.play::play:2.6.11\", \"com.typesafe.akka::akka-http:10.0.11\")() \n\n\nYou can also call it from the command line:\n\n    mill dgraph.browseDeps proj\n    \nor    \n\n    mill dgraph.browseDeps proj com.typesafe.play::play:2.6.11\n\n\n### Future\n\n* Currently only looks at runtime dependencies - could look at compile/test\n* Text based lists of dependencies / sizes\n* Suggestions welcome...\n\n## Changelog\n\n### 0.2.0\n\n- Update for mill 0.2.0 (thanks to @benjaminfrank)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajrnz%2Fmill-dgraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajrnz%2Fmill-dgraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajrnz%2Fmill-dgraph/lists"}