Search Gradle plugins

com.github.sgtsilvio.gradle.android-retrofix

Backports Java 8 APIs (java.util.Optional, java.util.function, java.util.stream, java.util.concurrent.CompletableFuture) to Android APIs < 24 (Android 7.0 Nougat)

https://github.com/SgtSilvio/android-retrofix

Version 0.2.1 (latest)

Created 14 July 2019.

Backports Java 8 APIs (java.util.Optional, java.util.function, java.util.stream, java.util.concurrent.CompletableFuture) to Android APIs < 24 (Android 7.0 Nougat)

Using the plugins DSL:

plugins {
  id "com.github.sgtsilvio.gradle.android-retrofix" version "0.2.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.github.sgtsilvio.gradle:android-retrofix:0.2.1"
  }
}

apply plugin: "com.github.sgtsilvio.gradle.android-retrofix"

Using the plugins DSL:

plugins {
  id("com.github.sgtsilvio.gradle.android-retrofix") version "0.2.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.com.github.sgtsilvio.gradle:android-retrofix:0.2.1")
  }
}

apply(plugin = "com.github.sgtsilvio.gradle.android-retrofix")

Learn how to apply plugins to subprojects