android - How to determine during the build which exactly version of dependency is used -
i want display exact versions of app's dependencies in "about" screen. in build.config
i'm using wildcards compile 'com.google.guava:guava:16.0.+'
dependencies, exact version used be, say, 16.0.1
. there way dependencies listed actual versions and, example, set them buildconfig
file can read them in app's runtime?
it sounds looking dependencyreport
task project reports plugin
otherwise this:
task buildconfig << { new file("$builddir/buildconfig").withwriter { out -> configurations.runtime.resolvedconfiguration.resolvedartifacts.each { dep -> out.writeline(dep.moduleversion.id.tostring()) } } }
android gradle
No comments:
Post a Comment