awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
evant avatar

evant/gradle-retrolambda

0
View on GitHub↗
5,258 星标·442 分支·Java·Apache-2.0·4 次浏览

Gradle Retrolambda

gradle-retrolambda 是一个 Gradle 插件和字节码转换器,旨在让旧版 Java 和 Android 运行时环境能够使用现代 Java Lambda 表达式。它作为一个回溯移植(backporting)工具,确保现代函数式编程语法与旧版虚拟机保持兼容。

该项目通过转换已编译的类文件,使其兼容 Java 6 和 7 环境。这使得在必须保持与旧版 API 级别和旧款 Android 设备兼容的项目中,也能使用现代 Java 特性。

该工具集成在 Gradle 构建自动化流程中,通过编译后转换来修改二进制输出。它利用字节码层面的脱糖(desugaring)技术,将 Lambda 表达式转换为匿名内部类,并生成兼容的运行时桥接代码。

Features

  • Bytecode Desugaring - Transforms modern lambda expression instructions into compatible anonymous inner class bytecode for older Java runtime environments.
  • Build Lifecycle Hooks - Hooks into the standard Java compilation lifecycle to modify class files immediately after the compiler finishes.
  • Bytecode Transformers - Gradle plugin that converts Java lambda expressions into bytecode compatible with Java 6 and 7 environments.
  • Android Bytecode Compatibility Tools - Gradle extension that ensures modern Java source code runs on older Android devices by transforming lambda expressions.
  • Legacy Runtime Compatibility - Enables use of modern Java syntax in Android applications that must maintain compatibility with older API levels.
  • Bytecode Manipulation Libraries - Uses a low-level bytecode library to parse and rewrite Java class files without requiring original source code.
  • Cross-Version JVM Compilation - Allows writing code using modern Java features while targeting older versions of the Java Virtual Machine.
  • Legacy Application Support - Adds modern lambda expressions to projects running on Java 6 or Java 7 without upgrading the entire runtime environment.
  • Language Feature Backporting - Transforms modern lambda expressions into bytecode compatible with older Java runtime environments during compilation.
  • Gradle Build Systems - Integrates bytecode transformation into a Gradle build process to ensure Java lambdas work on older virtual machines.
  • Java Environments - Enables modern functional programming syntax in legacy Java and Android runtime environments.
  • Legacy Runtime Compatibility - Creates synthetic classes and methods that allow newer language features to execute on legacy virtual machines.
  • Post-Compilation Transformations - Modifies the compiled binary output instead of altering the source code or the compiler frontend.
  • Advanced Development Frameworks - Gradle plugin for Java lambda support on older Android.
  • Development Productivity Tools - Enables modern language features on older runtime environments.

Star 历史

evant/gradle-retrolambda 的 Star 历史图表evant/gradle-retrolambda 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Gradle Retrolambda 的开源替代方案

相似的开源项目,按与 Gradle Retrolambda 的功能重合度排序。
  • cglib/cglibcglib 的头像

    cglib/cglib

    4,896在 GitHub 上查看↗

    cglib is a suite of tools for JVM bytecode generation, class transformation, and dynamic proxying. It provides a high-level API for creating and transforming Java bytecode at runtime to modify class behavior and a framework for intercepting method calls and field access. The project implements dynamic proxy generation to support aspect oriented programming and custom data access patterns. It also includes a serialization manager to implement serialization contracts by adding specific methods and controlling object replacement within proxy classes. The library covers bytecode manipulation and

    Java
    在 GitHub 上查看↗4,896
  • mcxiaoke/packer-ng-pluginmcxiaoke 的头像

    mcxiaoke/packer-ng-plugin

    4,797在 GitHub 上查看↗

    This project is an Android Gradle build plugin designed to automate the creation of multiple channel-specific application packages from a single build process. It functions as an APK variant generator that injects unique distribution identifiers into application packages to track installation sources across different app stores. The tool manages the entire distribution lifecycle, from defining target channels via external configuration to generating the corresponding package variants. It uses template-based artifact naming with dynamic placeholders to organize output files and includes a syst

    Javaandroidapkgradle
    在 GitHub 上查看↗4,797
  • jboss-javassist/javassistjboss-javassist 的头像

    jboss-javassist/javassist

    4,230在 GitHub 上查看↗

    Javassist is a bytecode engineering toolkit for analyzing, modifying, and generating Java bytecode and class files. It functions as a bytecode manipulation library that allows for the editing of class files through either direct bytecode access or high-level source code syntax. The project provides specialized tools for the programmatic creation of new Java classes and interfaces during runtime. It includes a dynamic proxy generator for intercepting method calls and a class loader interceptor that automatically modifies class definitions as they are loaded into the Java Virtual Machine. Addi

    Javajavajava-bytecode
    在 GitHub 上查看↗4,230
  • symfony/polyfill-php72symfony 的头像

    symfony/polyfill-php72

    4,742在 GitHub 上查看↗

    This project is a PHP compatibility polyfill designed to backport core functions and constants from PHP 7.2 to older versions of the language. It serves as a PHP standard library extension and version backport, providing a compatibility layer that fills gaps in the PHP core to ensure consistent behavior across different environments. The library enables cross-version code portability by implementing missing standard library functions, allowing newer language features to run on legacy PHP environments. This ensures that applications can maintain a consistent interface and remain compatible wit

    compatibilitycomponentjavascript
    在 GitHub 上查看↗4,742
查看 Gradle Retrolambda 的所有 30 个替代方案→

常见问题解答

evant/gradle-retrolambda 是做什么的?

gradle-retrolambda 是一个 Gradle 插件和字节码转换器,旨在让旧版 Java 和 Android 运行时环境能够使用现代 Java Lambda 表达式。它作为一个回溯移植(backporting)工具,确保现代函数式编程语法与旧版虚拟机保持兼容。

evant/gradle-retrolambda 的主要功能有哪些?

evant/gradle-retrolambda 的主要功能包括:Bytecode Desugaring, Build Lifecycle Hooks, Bytecode Transformers, Android Bytecode Compatibility Tools, Legacy Runtime Compatibility, Bytecode Manipulation Libraries, Cross-Version JVM Compilation, Legacy Application Support。

evant/gradle-retrolambda 有哪些开源替代品?

evant/gradle-retrolambda 的开源替代品包括: cglib/cglib — cglib is a suite of tools for JVM bytecode generation, class transformation, and dynamic proxying. It provides a… mcxiaoke/packer-ng-plugin — This project is an Android Gradle build plugin designed to automate the creation of multiple channel-specific… jboss-javassist/javassist — Javassist is a bytecode engineering toolkit for analyzing, modifying, and generating Java bytecode and class files. It… symfony/polyfill-php72 — This project is a PHP compatibility polyfill designed to backport core functions and constants from PHP 7.2 to older… gradle/kotlin-dsl-samples — This repository provides a collection of example configurations demonstrating how to define project build logic and… jetbrains/intellij-platform-plugin-template — This project is a standardized project scaffolding and build automation system for developing IntelliJ IDE plugins. It…