{"id":13604036,"url":"https://github.com/platan/idea-gradle-dependencies-formatter","last_synced_at":"2025-09-17T08:31:36.927Z","repository":{"id":6946013,"uuid":"41822220","full_name":"platan/idea-gradle-dependencies-formatter","owner":"platan","description":"Gradle dependencies formatter for IntelliJ IDEA","archived":false,"fork":false,"pushed_at":"2024-05-02T05:00:25.000Z","size":1402,"stargazers_count":163,"open_issues_count":7,"forks_count":7,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-01-03T05:22:23.283Z","etag":null,"topics":["dependencies","gradle","intellij","intellij-idea","intellij-plugin"],"latest_commit_sha":null,"homepage":"https://plugins.jetbrains.com/plugin/7937","language":"Groovy","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/platan.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":"2015-09-02T19:10:17.000Z","updated_at":"2024-01-12T17:58:38.000Z","dependencies_parsed_at":"2024-09-24T20:41:03.891Z","dependency_job_id":null,"html_url":"https://github.com/platan/idea-gradle-dependencies-formatter","commit_stats":{"total_commits":482,"total_committers":4,"mean_commits":120.5,"dds":"0.16182572614107882","last_synced_commit":"8ff5171c71cd0638e2a28b1ae7b84e1ed42116f4"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/platan%2Fidea-gradle-dependencies-formatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/platan%2Fidea-gradle-dependencies-formatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/platan%2Fidea-gradle-dependencies-formatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/platan%2Fidea-gradle-dependencies-formatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/platan","download_url":"https://codeload.github.com/platan/idea-gradle-dependencies-formatter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233352223,"owners_count":18663257,"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":["dependencies","gradle","intellij","intellij-idea","intellij-plugin"],"created_at":"2024-08-01T19:00:38.637Z","updated_at":"2025-09-17T08:31:31.582Z","avatar_url":"https://github.com/platan.png","language":"Groovy","funding_links":[],"categories":["gradle","Groovy"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"src/main/etc/logo/pluginIcon_all-full.svg\" height=\"160\"\u003e\n\u003c/p\u003e\n\n# Gradle dependencies formatter\n    \n[![Build Status](https://img.shields.io/github/actions/workflow/status/platan/idea-gradle-dependencies-formatter/build.yml)](https://img.shields.io/github/actions/workflow/status/platan/idea-gradle-dependencies-formatter/build.yml)\n[![Build Status (Windows)](https://img.shields.io/appveyor/ci/platan/idea-gradle-dependencies-formatter/master.svg?label=build%20(Windows))](https://ci.appveyor.com/project/platan/idea-gradle-dependencies-formatter)\n[![Coverage Status](https://coveralls.io/repos/platan/idea-gradle-dependencies-formatter/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/platan/idea-gradle-dependencies-formatter?branch=master)\n[![codebeat badge](https://codebeat.co/badges/669c521f-7ecb-4e0a-a079-fa5c28ca17c7)](https://codebeat.co/projects/github-com-platan-idea-gradle-dependencies-formatter-master)\n[![Version](https://img.shields.io/jetbrains/plugin/v/7937.svg?label=latest)](https://plugins.jetbrains.com/plugin/7937-gradle-dependencies-formatter)\n[![Downloads](https://img.shields.io/jetbrains/plugin/d/7937.svg)](https://plugins.jetbrains.com/plugin/7937-gradle-dependencies-formatter)\n\nIntelliJ IDEA plugin for formatting Gradle dependencies. \n\n## Features\n\n- Convert a string notation to a map notation\n- Convert a map notation to a string notation\n- Sort dependencies\n- Paste a Maven dependency as a Gradle dependency (on the fly conversion)\n\n## Installation\n\nInstall using the JetBrains Plugin Repository:  \n`File` \u003e `Settings` \u003e `Plugins` \u003e `Browse repositories...` \u003e type `gradle dependencies formatter` in search form \u003e `Install plugin`\n\n## Usage\n\n### Convert between a string notation and a map notation\n\nUse `Show Intention Actions` action (`Alt + Enter` or ⌥⏎) and choose `Convert to map notation` or `Convert to string notation`.\n\n![Convert a string notation to a map notation](https://raw.githubusercontent.com/platan/idea-gradle-dependencies-formatter/master/readme/convert.gif)\n\n### Sort dependencies\n\nIn order to sort dependencies open a `.gradle` file and use `Sort Gradle dependencies` action from `Code` menu. \n\n![Sort dependencies](https://raw.githubusercontent.com/platan/idea-gradle-dependencies-formatter/master/readme/sort.gif)\n\n### Paste a Maven dependency as a Gradle dependency\n\n1. Copy a declaration of a Maven dependency in any editor.\n2. Paste it into gradle file to dependencies section. Plugin will automatically convert it to a Gradle dependency.\n\n![Paste a Maven dependency as a Gradle dependency](https://raw.githubusercontent.com/platan/idea-gradle-dependencies-formatter/master/readme/paste.gif)\n\nFeatures:\n- converts Maven dependency with `groupId` (required), `artifactId` (required), `version`, `classifier`, `optional` and `exclusions` fields\n- handles scopes: `compile`, `provided`, `runtime`, `test`\n- optional dependencies are coded using syntax defined by [Nebula Extra Configurations](https://github.com/nebula-plugins/gradle-extra-configurations-plugin/)\n- can convert several dependencies at once\n\nIf you need to paste XML with maven dependency into gradle file without modification, please use `Paste Simple` action.\n\nNote: In version 2016.3 IntelliJ IDEA added a similar feature. It converts a single maven dependency at once and handles only simple cases. This plugin overrides this built-in feature.\n\n## Development\n\nBuild:  \n`./gradlew build`\n\nIn order to run tests with specific IntelliJ IDEA version (e.g. 2016.3) use this command:  \n`./gradlew -P ideaVersion=2016.3 test`\n\nRun IntelliJ IDEA with the plugin intalled in:\n`./gradlew runIde`\n\nThis project uses [gradle-intellij-plugin](https://github.com/JetBrains/gradle-intellij-plugin). Please refer to its documentation for information about a configuration. \n\nNote: Currently the project is not prepared to be imported as a IntelliJ Platform Plugin.\n\n## Changelog\n\n### 0.6.1 (2021-09-12)\n- (bugfix) fixed NPE in `StringNotationToMapNotationIntention` [#76](https://github.com/platan/idea-gradle-dependencies-formatter/issues/76)\n\n### 0.6.0 (2021-02-12)\n- (feature) Sort dependencies in allprojects block and in subprojects block [#39](https://github.com/platan/idea-gradle-dependencies-formatter/issues/39)\n- (feature) Change notation type on multiple dependencies at once [#38](https://github.com/platan/idea-gradle-dependencies-formatter/issues/38)\n- (bugfix) Convert a map notation that uses a variable to a string notation properly [#42](https://github.com/platan/idea-gradle-dependencies-formatter/issues/42)\n\n### 0.5.3 (2017-12-19)\n- (bugfix) Unable to paste multiple Maven dependencies at once [#3](https://github.com/platan/idea-gradle-dependencies-formatter/issues/3)\n\n### 0.5.2 (2017-04-09)\n- (bugfix) fixed NPE in `MapNotationToStringNotationIntention#getElementPredicate`\n\n### 0.5.1 (2017-02-12)\n- (improvement) Run `MavenToGradleDependenciesCopyPasteProcessor` before built-in `CopyPasteProcessor`s\n\n### 0.5.0 (2016-03-29)\n- (feature) Sort dependencies\n\n### 0.4.0 (2015-10-20)\n- (feature) Convert a map notation to a string notation\n- (bugfix) Convert string notation of a dependency with ext to a map notation\n\n### 0.3.0 (2015-09-22)\n- Convert a string notation to a map notation\n\n### 0.2.0 (2015-09-08)\n- Paste a Maven dependency as a Gradle dependency:\n    - added support for elements `classifier` and `optional`\n    - version is skipped for dependency without version\n\n### 0.1.0 - initial release (2015-09-02)\n- Paste a Maven dependency as a Gradle dependency\n\n## License\n\nThis project is licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplatan%2Fidea-gradle-dependencies-formatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplatan%2Fidea-gradle-dependencies-formatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplatan%2Fidea-gradle-dependencies-formatter/lists"}