Search Gradle plugins

Version 0.4.1-alpha

Created 20 August 2015.

Gradle Plugin for J2ObjC, which is an open-source tool from Google that translates Java source code to Objective-C for the iOS (iPhone/iPad) platform. The plugin is not affiliated with Google but was developed by former Google Engineers and others. J2ObjC enables Java source to be part of an iOS application's build, no editing of the generated files is necessary. The goal is to write an app's non-UI code (such as application logic and data models) in Java, which is then shared by Android apps, web apps (using GWT), and iOS apps (using J2ObjC).

Add this plugin to your build using the plugins DSL:

plugins {
  id("com.github.j2objccontrib.j2objcgradle") version "0.4.1-alpha"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("com.github.j2objccontrib.j2objcgradle:com.github.j2objccontrib.j2objcgradle.gradle.plugin:0.4.1-alpha")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("com.github.j2objccontrib.j2objcgradle")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("com.github.j2objccontrib.j2objcgradle:com.github.j2objccontrib.j2objcgradle.gradle.plugin:0.4.1-alpha")
      }
    }
    
    apply(plugin = "com.github.j2objccontrib.j2objcgradle")
  • Applying plugins to all subprojects .