This parses the dependencies of a build.gradle file and outputs them in different formats.
python gdp.py -i normal -o kotlin -f output.txt <path to build.gradle file>
- 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.
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')