Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better Fat Jar / AAR #1

Open
vontell opened this issue Jul 29, 2018 · 1 comment
Open

Better Fat Jar / AAR #1

vontell opened this issue Jul 29, 2018 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@vontell
Copy link
Owner

vontell commented Jul 29, 2018

The InternalBilityTester library for Android builds an AAR file that is pushed to out local maven repo. However, the resulting aar file does not include the dependencies required by the AAR (i.e. OkHTTP and UiAutomator). It would be nice to create a fat jar or fat aar that handles this, while also avoiding dependency conflicts with any library that is already present in a test project. (I think some of the issues arise when the JAR depends on AARs)

Potentially helpful references:

https://gist.github.com/echo500/2b8ccd870bbc98c14f135c8e6fe9eebf
https://discuss.gradle.org/t/how-to-include-dependencies-in-jar/19571
https://stackoverflow.com/questions/4871656/using-gradle-to-build-a-jar-with-dependencies

@vontell vontell added enhancement New feature or request good first issue Good for newcomers labels Jul 29, 2018
@vontell
Copy link
Owner Author

vontell commented Jul 30, 2018

I've had luck with this using the shadowJar plugin for Gradle, which created a fat jar with Kotlin deps as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant