Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

A python script to convert one gradle dependency format to another

Notifications You must be signed in to change notification settings

code0x378/gradle-deps-parser

Repository files navigation

Gradle Dependencies Parser

This parses the dependencies of a build.gradle file and outputs them in different formats.

Usage

python gdp.py -i normal -o kotlin -f output.txt <path to build.gradle file>

Notes

  • This does not modify the build.gradle file and only outputs to a file for review.
  • This does not convert the entire script (i.e. from groovy to kotlin), only the dependencies section.
  • This is not recursive.

Example

Groovy Short Input

implementation 'com.fasterxml.uuid:java-uuid-generator:4.0.1'
kapt 'com.github.rjeschke:txtmark:0.13'
compile 'org.apache.httpcomponents:httpclient:4.5.13'

Kotlin Output

implementation('com.fasterxml.uuid:java-uuid-generator:4.0.1')
kapt('com.github.rjeschke:txtmark:0.13')
compile('org.apache.httpcomponents:httpclient:4.5.13')

About

A python script to convert one gradle dependency format to another

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published