Skip to content

InstallationGradle

stephanenicolas edited this page Dec 7, 2014 · 4 revisions

Installation for Gradle Projects

Add the following pom to the dependencies section of your gradle build file :

    project.dependencies {
        compile 'org.roboguice:roboguice:3.+'
        provided 'org.roboguice:roboblender:3.+'
    }

If you'd like to be able to mark certain injections as Nullable, you can either use the android support annotations in your local Android SDK, or you can add the optional @Nullable annotation like this :

    project.dependencies {
        // For the optional Nullable annotation
        compile 'com.google.code.findbugs:jsr305:1.3.9'
    }

(Any annotation whose name is "Nullable" will work.)

Clone this wiki locally