Issue
Gradle offers two kinds of syntax to declare a dependency.
- Abbreviated:
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0-M1'
- Labeled:
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.9.0-M1'
👉 Is there some trick in IntelliJ to convert between these formats?
Solution
The Gradle Dependencies Formatter plugin performs that conversion.
Tip: The code editor’s yellow light bulb icon menu with contextual menu will offer a "Convert to map notation" item after you install this plugin.
Answered By - Andrey
Answer Checked By - Katrina (JavaFixing Volunteer)