GitXplorerGitXplorer
r

gradle_to_buck

public
0 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
20c31dd44ce7fd45a8fa3e20e90cb4f621731a6f

Update Readme.md

rrowillia committed 9 years ago
Unverified
a954a11dca0953e6ffc6967aa842571984f07d88

Update readme

committed 9 years ago
Unverified
e57512195e713c81b64d525b288909ae8c5c4132

Initial import of Buck File Generator Python Script

committed 9 years ago
Unverified
bccbfb1878891f8a23aad01d04bec17d820c21d2

Initial commit

rrowillia committed 9 years ago

README

The README file for this repository.

gradle_to_buck

Scripts to help migrate existing Gradle projects to Buck

This python script will take an existing Gradle project and generate a BUCK file per Java package, generating all dependencies for you.

WARNING

This is a script I am hacking on and is likely not fit for external use.

Usage

First, you should build your project with Gradle to fetch all dependencies needed.

Optionally, use Android Studio's Optimize Imports feature to remove any unneeded dependencies between Java packages.

Buck encourages the creation of many small modules, ideally at the Java Package level. Buck, however, doesn't allow cyclic dependencies between modules. Thankfully, IntelliJ provides tools to tease these apart.

https://www.jetbrains.com/idea/help/analyzing-cyclic-dependencies.html

For advice on how to resolve cyclic dependencies, see the excellent series about F# - http://fsharpforfunandprofit.com/posts/cyclic-dependencies/. While these articles are about F#, the ideas are generally applicable.

Next, run python $PATH_TO_THIS_REPO/buck_file_generator.py

And all of your Java modules will have a BUCK file generated for them.