Search Gradle plugins

net.socialhub.j2objccontrib.j2objcgradle

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).

https://github.com/uakihir0/j2objc-gradle

Sources: https://github.com/uakihir0/j2objc-gradle

Version 0.7.1

Created 07 August 2019.

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, and iOS apps (using J2ObjC). Adapted with JDK 8 to 11.

Using the plugins DSL:

plugins {
  id("net.socialhub.j2objccontrib.j2objcgradle") version "0.7.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.net.socialhub.j2objccontrib.j2objcgradle:j2objc-gradle:0.7.1")
  }
}

apply(plugin = "net.socialhub.j2objccontrib.j2objcgradle")

Using the plugins DSL:

plugins {
  id "net.socialhub.j2objccontrib.j2objcgradle" version "0.7.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.net.socialhub.j2objccontrib.j2objcgradle:j2objc-gradle:0.7.1"
  }
}

apply plugin: "net.socialhub.j2objccontrib.j2objcgradle"

Learn how to apply plugins to subprojects