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

Sources: https://github.com/SgtSilvio/android-retrofit

Version 1.0.0 (latest)

1.0.0

Created 26 March 2024.

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects