Realm-java: Realm Gradle plugin

Created on 9 Jan 2016  ·  5Comments  ·  Source: realm/realm-java

I read https://realm.io/news/android-installation-change/ and want to install Realm by gradle plugin. I want to know that the build.gradle is Module.app or Project. Thank you.

T-Help

Most helpful comment

Correct me if I'm wrong, but the gradle plugin dependency link mentioned in your recent blog post is:

classpath "io.realm:gradle-plugin:<version>"

and in your example build.gradle file,

classpath "io.realm:realm-gradle-plugin:<version>"

Which one of these two is the recommended one?

Update: I'm receiving this error when using any of the two URLs:

Error:Could not find io.realm:realm-gradle-plugin:0.87.2.
Searched in the following locations:
    file:/C:/Android/Android Studio/gradle/m2repository/io/realm/realm-gradle-plugin/0.87.2/realm-gradle-plugin-0.87.2.pom
    file:/C:/Android/Android Studio/gradle/m2repository/io/realm/realm-gradle-plugin/0.87.2/realm-gradle-plugin-0.87.2.jar
    https://repo1.maven.org/maven2/io/realm/realm-gradle-plugin/0.87.2/realm-gradle-plugin-0.87.2.pom
    https://repo1.maven.org/maven2/io/realm/realm-gradle-plugin/0.87.2/realm-gradle-plugin-0.87.2.jar
    https://maven.fabric.io/public/io/realm/realm-gradle-plugin/0.87.2/realm-gradle-plugin-0.87.2.pom
    https://maven.fabric.io/public/io/realm/realm-gradle-plugin/0.87.2/realm-gradle-plugin-0.87.2.jar
Required by:
    RealmTest:app:unspecified

Update 2: Bump @beeender

All 5 comments

Thank you for your helping.

Correct me if I'm wrong, but the gradle plugin dependency link mentioned in your recent blog post is:

classpath "io.realm:gradle-plugin:<version>"

and in your example build.gradle file,

classpath "io.realm:realm-gradle-plugin:<version>"

Which one of these two is the recommended one?

Update: I'm receiving this error when using any of the two URLs:

Error:Could not find io.realm:realm-gradle-plugin:0.87.2.
Searched in the following locations:
    file:/C:/Android/Android Studio/gradle/m2repository/io/realm/realm-gradle-plugin/0.87.2/realm-gradle-plugin-0.87.2.pom
    file:/C:/Android/Android Studio/gradle/m2repository/io/realm/realm-gradle-plugin/0.87.2/realm-gradle-plugin-0.87.2.jar
    https://repo1.maven.org/maven2/io/realm/realm-gradle-plugin/0.87.2/realm-gradle-plugin-0.87.2.pom
    https://repo1.maven.org/maven2/io/realm/realm-gradle-plugin/0.87.2/realm-gradle-plugin-0.87.2.jar
    https://maven.fabric.io/public/io/realm/realm-gradle-plugin/0.87.2/realm-gradle-plugin-0.87.2.pom
    https://maven.fabric.io/public/io/realm/realm-gradle-plugin/0.87.2/realm-gradle-plugin-0.87.2.jar
Required by:
    RealmTest:app:unspecified

Update 2: Bump @beeender

Hey and sorry if this is the wrong "issue" to ask.
First at all: great job so far, loving realm :-)

I just want to know if it will be stil possible (easily) to build with maven without gradle?
Thanks for answer :+1:

We don't support Maven right now, since we didn't have any requests for it. We have talked about it though, but haven't really prioritised it. I just noticed we are actually lacking an issue for tracking interest for it, so i'll create one.

EDIT: https://github.com/realm/realm-java/issues/2342

Was this page helpful?
0 / 5 - 0 ratings