j2objc-contrib / j2objc-gradle

This plugin is no longer actively maintained. J2ObjC Gradle Plugin: enables Java source to be part of an iOS application's build so you can write an app's non-UI code (such as application logic and data models) in Java, which is then shared by Android apps (natively Java) and iOS apps (using J2ObjC), all as part of your usual Android Gradle build.
https://github.com/j2objc-contrib/j2objc-gradle
Apache License 2.0
139 stars 43 forks source link

Latest version of the Android Plugin for Gradle (2.0.0) requires Gradle 2.10 or later #613

Open adil-hussain-84 opened 8 years ago

adil-hussain-84 commented 8 years ago

The latest version of the Android Plugin for Gradle (2.0.0) released recently requires Gradle 2.10 or later.

The latest version of the J2ObjC Gradle plugin (0.6.0-alpha) requires Gradle 2.8 and does not work with later versions of Gradle.

Thus any project which uses the latest version of the Android Plugin for Gradle cannot use the J2ObjC Gradle plugin as it currently stands. This together with the inability to use the latest version of the J2ObjC library (1.+) means I'm going to have to drop the J2ObjC Gradle plugin for now. It worked well when it did but at this point the cost is too high :-(

Smartertime commented 8 years ago

You can work around the version checking in your application build.gradle :

buildscript {
    ...
    System.properties['com.android.build.gradle.overrideVersionCheck'] = 'true'
}

Not a good permanent solution, but so far had no problem compiling with the 2.0.0 android gradle plugin (mandatory with the new 2.0 Android Studio) and 2.8 gradle.

pdalfarr commented 8 years ago

is support for gradle 2.10 coming...?