This article introduces the Jansi library for Java, shows how to add it via Gradle or Maven, provides runnable demo code for printing colored text, explains the underlying builder field, lists supported ANSI colors, and offers simple wrapper utilities and a random‑color string extension.
RocketX is an open‑source Gradle plugin that speeds up large Android projects by dynamically swapping unchanged modules with pre‑built AAR artifacts, compiling only the changed modules and the app module, thereby reducing full‑build times by over 300% while preserving project integrity.
This article explains why Gradle is a superior Java build tool, covering installation methods, the Gradle wrapper, concise dependency management, task and plugin flexibility, mirror and proxy configuration, and the performance advantages over Maven.
This article explains Gradle's fundamentals, compares it with Maven, introduces Groovy's abstract syntax tree (AST) concepts, and provides a step‑by‑step demo that parses a Gradle script into an AST, modifies it to inject a dependency, and attempts to write the changes back to the original build file.
This article explains how to configure Gradle and AndroidManifest files to run individual modules independently in a multi‑module Android project and demonstrates the implementation of ARouter login interceptors to control navigation across modules.
Facing 8‑minute Gradle syncs, frequent GC‑over‑limit errors, and excessive memory usage, the team diagnosed severe memory leaks in Android build configurations, applied variantFilter filtering, tuned JVM arguments, and optimized daemon settings, ultimately reducing sync time to 1.5 minutes and cutting CI build time in half.
This tutorial explains how to build a custom Gradle Transform plugin, integrate ASM bytecode manipulation, and instrument Android applications to detect and report illegal privacy API calls, covering project setup, plugin implementation, ASM basics, and practical verification steps.
This article guides readers from zero to one in creating Android Studio plugins by explaining the IntelliJ IDE plugin development workflow, required tools, project setup, core files like build.gradle and plugin.xml, implementing actions, wizards, tool windows, UI creation, data persistence, and packaging for distribution.
This tutorial explains how to incorporate third‑party AAR files into a Flutter plugin, configure the Android host project, address the bundleReleaseAar build error, and successfully build a Flutter application APK.
This article details Alipay's comprehensive AndroidX migration for its Android app, covering the deprecation of Android Support, industry adoption statistics, technical challenges, a modular adaptation strategy, tooling such as Jetifier and a custom bx command‑line utility, and the resulting impact on build time and product output.
This article explains how Gradle 7's Version Catalog feature lets you centralize and share dependency versions, bundles, and plugin declarations across modules and projects, offering type‑safe accessors, version separation, and easy publishing through Maven, with practical code examples and configuration steps.
This guide explains how to add the mica-ip2region starter to a Spring Boot project, covering Maven and Gradle dependencies, built‑in configuration, custom Maven settings for the ip2region.db file, bean injection, available lookup methods, and a complete service example.
Upgrading a project from Android Gradle Plugin 3.5 to 4.1.3 required applying official migration steps, adjusting deprecated fields, resource paths, manifest tasks, ASM version, disabling configure‑on‑demand and the new zipflinger packager, and fixing NDK configuration, which together yielded roughly 36 % faster builds and a 5 MB smaller APK.
This article describes Trip.com’s experience adapting its Android app to Android 11, covering background, key changes such as scoped storage and package visibility, migration strategies, implementation details, encountered challenges, and lessons learned for mobile developers.
This article details the finalization of the DCS_FunTester distributed load‑testing framework, shares practical lessons from converting a two‑project setup into a Gradle multi‑module build, and explains the implementation of result collection, task distribution, health‑check, and registration mechanisms using Java, Maven, and Spring APIs.
This article details the final updates to the DCS_FunTester distributed testing framework, covering Gradle multi‑module configuration, dependency handling, result aggregation, task dispatch, health‑check endpoints, and registration optimizations with practical code examples in Java and Maven.
This tutorial walks you through installing Groovy, configuring environment variables, cloning the FunTester repository, building with Gradle, and running a simple hello‑world test case, while also detailing the framework's project structure and essential code snippets.
Learn how to set up a complete Android CI/CD pipeline by installing JDK, Android SDK, and Gradle, creating Docker images for builds, configuring Jenkins on Kubernetes, and automating packaging and deployment, with detailed commands and troubleshooting tips for efficient mobile app releases.
Upgrading from AGP 3.5.0 to 4.1.0 dramatically simplifies R class generation, removes redundant R files via R8‑based inlining, reduces APK size by ~7 MB, and speeds up release builds by over ten minutes, as demonstrated through detailed build‑artifact comparisons and Gradle task analysis.
This article explains why Android developers need Gradle, describes the structure of a default Android project, details Gradle concepts such as projects, tasks, and the wrapper, and walks through dependency configurations, conflict resolution, and the complete build and packaging pipeline for APK generation.
Microsoft’s July‑December 2021 VS Code roadmap for Java introduces Workspace Trust security, enhanced remote development via Codespaces, expanded Gradle and Maven support, new testing APIs, virtual‑thread debugging, and ongoing improvements to code completion, package imports, compilation, large‑project handling, performance and reliability.
This guide explains how to download Selenium 4 alpha‑7 for various languages and shows step‑by‑step updates for Maven pom.xml and Gradle build.gradle files, including necessary dependencies and a complete demo configuration for Java test automation.
This guide explains how JRebel eliminates the need to restart Tomcat by enabling hot‑deployment of class and Spring configuration changes, covering two installation methods—adding JVM parameters to Tomcat and using the IntelliJ IDEA plugin—plus detailed configuration for Windows, Linux, Mac, Maven, and Gradle.
This article explains why large Android projects need componentization, describes the concepts of modularization and componentization, presents a detailed component architecture, and provides step‑by‑step solutions for independent debugging, routing, inter‑component communication, fragment retrieval, application lifecycle distribution, and migration of legacy projects, complete with Gradle and ARouter code examples.
This article explains how to create a custom Android Lint rule that traverses Gradle projects to automatically collect module dependencies, generate a Mermaid‑compatible markdown diagram, and refine the graph by removing redundant edges, providing developers with up‑to‑date visual dependency maps.
This article provides a comprehensive guide to Android code obfuscation, covering the purpose and benefits of minification, detailed ProGuard/R8 configuration, resource shrinking, desugaring, D8/R8 internals, custom obfuscation dictionaries, and modular ProGuard rules for multi‑module projects.
This article presents a comprehensive experience of UI componentization in Android projects, covering the background, goals, engineering and component architectures, detailed implementation steps for reusable UI components such as FlatButton, and practical Gradle configurations to achieve modular, decoupled, and scalable UI development.
To cut full‑build times in large Android projects, the team pre‑compiles each library module into an AAR, publishes it to a Maven repository, computes a content‑plus‑dependency‑graph hash to detect existing AARs, and automatically swaps project dependencies for matching AARs while addressing duplicate‑class and version conflicts.
This article explains how Enterprise WeChat adopted Android App Bundle and low‑intrusion dynamic feature modules to restructure a massive Android codebase, achieving faster engineering cycles, parallel and incremental compilation, reduced package size, and seamless migration with minimal code changes.
This article introduces the Gradle Docker plugin, shows how to configure it for a SpringBoot project, demonstrates building and pushing Docker images directly from Gradle, and compares the build speed with Maven, highlighting the simplicity and speed gains.
This article explains how to configure product flavors in a Flutter Android project, create multiple entry files for each flavor, detail the underlying Gradle and Flutter build commands, and analyze a case‑sensitive SDK bug with practical solutions for successful APK generation.
This article walks developers through creating the StopCoding IntelliJ IDEA plugin—a Java‑based extension that reminds you to rest, drink water, and pause coding—covering IDE fundamentals, Gradle project setup, plugin.xml configuration, action implementation, UI dialogs, and usage instructions.
Facing sluggish Gradle builds for a large Android news app, the team applied componentized compilation, Artifactory caching, minimal compile mode, parameter tuning, and remote compilation via SSH, achieving up to 90% faster non‑incremental builds and 75% faster incremental builds while maintaining stability across the CI pipeline.
This article describes a method for analyzing Android APK size at the library level by extracting and parsing Gradle intermediate merge files, mapping resources, assets, native libraries and Java resources to their originating libraries, and linking them to maintenance teams for precise package‑size reporting.
This article introduces Gradle as a modern Java build tool, explains how to install it via binaries or package managers, demonstrates using the Gradle wrapper, details dependency scopes, describes custom tasks and plugins, and provides step‑by‑step instructions for configuring mirrors and proxy settings to improve download speed and reliability.
This article explains the drawbacks of Maven, introduces Gradle as a modern Java build tool, and provides step‑by‑step guidance on installing Gradle, using the Gradle wrapper, managing dependencies, configuring mirrors and proxies, and highlights Gradle’s speed, flexibility, and concise DSL compared to Maven.
This article explains why Gradle is essential for Android development, walks through the default project structure, details how Gradle tasks, dependency configurations, and the wrapper work together to compile Java sources, generate resources, resolve dependencies, transform classes, and finally package an APK.
This article explores the motivations, methodology, and practical implementation of converting existing Android business libraries into Dynamic Feature modules with minimal intrusion, covering Android App Bundle basics, build tools, dependency handling, resource merging, Arouter integration, and performance gains achieved through parallel and incremental builds.
This article examines the end‑to‑end workflow of Android app development, detailing how IDEs interact with Gradle, how tasks and dependency resolution are orchestrated, and what infrastructure underlies modern language tooling and build systems.
When using SpotBugs' Gradle plugin in a Java project, you may encounter "Cannot compile Groovy files" errors, which can be fixed by adding a Groovy SDK through the IDE's project structure settings.
This article walks through the design and implementation of a Java Socket.IO client library, covering dependency setup, core class architecture, event handling, connection management, performance testing utilities, and a complete usage demo with console output.
This guide explains the drawbacks of Maven, the advantages of Gradle, how to install Gradle via binaries or package managers, use the Gradle wrapper, manage dependencies with concise scopes, configure mirrors and proxies, and leverage Gradle's speed, flexibility, and simplicity for Java projects.
This article explains why findViewById breaks after re‑packaging game SDKs, introduces a Gradle‑based custom resource class (SqR) to replace dynamic getIdentifier calls, and outlines how annotation injection can provide a ButterKnife‑like solution for mobile developers.
This article introduces the fundamentals of IntelliJ IDEA plugin development, covering plugin types, project structure, essential components, a complete development workflow with Gradle, action registration, extension points, live templates, Dubbo integration, publishing procedures, common pitfalls, and how to include local JARs.
The article reflects on the pros and cons of JVM languages—especially Groovy—in team projects, examining readability, writability, IDE support, maintainability issues, and why newer alternatives like Kotlin Script may be more suitable for large‑scale development.
This article provides a comprehensive step‑by‑step guide on selecting technologies, configuring Gradle, integrating Spring Boot 2.1.5 with MyBatisPlus, setting up FastJSON, Hutool, Undertow, and other tools, and includes complete source code for entity, mapper, service, controller, and utility classes to build a clean Java backend application.
This article introduces Apache Thrift, explains its cross‑language IDL, data types, transport and protocol options, and walks through setting up the Thrift compiler, adding a Gradle dependency, writing a .thrift definition, generating Java code, and building a simple Java RPC server and client.
This guide explains what Protocol Buffers are, compares them with XML, shows how to define a .proto schema, compile it with protoc, add the generated classes to a Java Gradle project, and demonstrates object serialization and deserialization with concrete code examples.
This tutorial walks through creating a Netty HelloWorld server in IntelliJ IDEA using Gradle, adding the Netty dependency, implementing the server bootstrap, event loop groups, initializer and handler classes, and verifying the service with a curl request.
This guide walks through downloading Gradle 6.6.1, setting GRADLE_HOME and PATH on Windows, configuring a custom GRADLE_USER_HOME for dependency jars, and adjusting IntelliJ IDEA settings to use the installed Gradle distribution and a specific JDK.
Hutool is a popular open‑source Java utility library that consolidates common JDK functions into easy‑to‑use modules, offers numerous components such as AOP, caching, cryptography, and HTTP, and can be added via Maven or Gradle to streamline development and reduce repetitive code.
This article explains why Java developers should consider Gradle over Maven, covering installation methods, the Gradle wrapper, concise dependency management, customizable tasks and plugins, mirror and proxy configuration, and the performance, flexibility, and simplicity advantages that make Gradle a modern build solution.
Gradle 6.6 introduces experimental configuration caching, runtime classpath normalization, and a new credentials API, all aimed at dramatically speeding up builds, improving cache hit rates, and simplifying secure artifact publishing for Java projects.
Gradle 6.6 RC6 introduces experimental configuration caching for faster builds, runtime classpath normalization to improve cache hits, and a new credentials API that externalizes authentication details, while also adding Java compilation support, file‑system watch stability, dependency improvements, and various bug fixes.
This article explains why Maven can be cumbersome for Java developers and introduces Gradle as a faster, more flexible alternative, covering installation methods, the Gradle wrapper, dependency management, task and plugin customization, mirror and proxy configuration, and the overall advantages of Gradle over Maven.
This article explains how Huajiao’s Android team uses Gradle product flavors and custom build properties to create multiple APK variants for different channels, features, and store requirements, detailing configuration syntax, source set handling, variant filtering, and dynamic APK naming.
This guide demonstrates how to clone the HelloWorld Android Gradle repository, build the project using Gradle, locate the generated debug and release APK files, upload them to Fir for distribution, and verify the installation, providing all necessary commands and output details.
This guide walks through downloading and extracting JDK 8, setting up Android SDK tools, installing Gradle, configuring environment variables, and using sdkmanager commands on a Linux system to prepare a complete mobile development environment.
Spring Boot’s shift from Maven to Gradle, introduced in version 2.3.0.M1, dramatically cuts build times—from over an hour with Maven to under ten seconds on average with Gradle—by enabling incremental and parallel builds, while still supporting Maven for dependency management.
This article explains how to install Gradle, use the Gradle wrapper, manage dependencies with concise syntax, configure repositories and mirrors, set up proxy settings, and highlights Gradle's speed, flexibility, and simplicity compared to Maven, providing a comprehensive guide for Java developers transitioning to Gradle.
This article explains how Huajiao leverages Android Gradle product flavors and custom build properties to create fast, normal, and channel‑specific APK variants, detailing configuration syntax, source‑set handling, variant filtering, and automated APK naming for flexible mobile app delivery.
Spring Boot’s 2.3.0 release marked a major shift from Maven to Gradle, driven by the need to reduce build times, leverage incremental and parallel builds, and improve CI efficiency, resulting in average build times dropping from over an hour to just over nine minutes.
This article introduces the Groovy‑based Spock framework and the Mockito mocking library, shows how to configure them together in Gradle, and provides detailed Groovy demo code illustrating various mocking, spying, verification, and exception‑handling techniques for robust Java unit testing.
This guide explains how to install JDK 8, Android SDK Tools, and Gradle on a Linux system, including downloading packages, extracting them, configuring environment variables, verifying installations, and using sdkmanager to list, install, or uninstall Android platform packages.
This guide shows how to clone the HelloWorld Android Gradle repository, build the APK with Gradle, locate the debug and release packages, and upload them to the Fir distribution platform, including all required commands and build output details.
This article provides a curated collection of Groovy tutorials covering topics such as Java‑Groovy integration, stream‑based prime calculation, shell scripting, database operations with Gradle, Groovy Shell usage, operator overloading, JMeter scripting, regular expressions, tuples, lists, and advanced Gradle‑Groovy techniques.
This article explains the benefits of reading source code and provides a step‑by‑step guide for setting up a Gradle‑based environment, downloading, importing, compiling, and debugging Spring Framework source code with practical code examples and IDE configuration tips.
This guide explains why Android projects need an automated build tool, walks through the default Gradle project layout, clarifies modern dependency configurations and conflict resolution, and details the key packaging tasks, enabling developers to diagnose sync problems, manage libraries, and build reliable APKs efficiently.
The article explains how a Maven plugin can automatically compile only changed files and skip unit tests when code is unchanged, dramatically reducing build time, and provides step‑by‑step instructions with the necessary pom.xml configuration and a sample XML snippet.
Zucker is an open‑source Android utility that automatically analyzes APK module sizes by cloning projects, calculating unique AAR dependencies, simulating target AARs, and providing detailed reports to help developers reduce app bloat early in the development cycle.
This article compiles a comprehensive list of Java and Python development tools, including JaCoCo code coverage solutions, Moco API mock server tips, various Java utility libraries, Gradle build guides, and multiple Plotly visualization tutorials, providing direct links for each resource.
Learn how to create a Sonatype account, configure Maven POM metadata, add source and Javadoc jars, sign artifacts with GPG, set up Gradle publishing plugins, and deploy both SNAPSHOT and RELEASE versions to Sonatype’s OSS repository using Gradle 6.2.
This article explains the major changes in Spock 2.0 M1, how to integrate it with JUnit 5 via the JUnit Platform, provides step‑by‑step Gradle and Maven configurations, discusses compatibility issues with Groovy versions, and offers solutions for JUnit 4 Rule migration.
Spring Cloud Greenwich SR5, the final release of the Greenwich train based on Spring Boot 2.1.12, introduces bug fixes, minor enhancements, updated modules, and Maven/Gradle integration guidance, while recommending an upgrade to the Hoxton release for optimal cloud-native development.
Savitar, a custom Android Studio plugin suite, accelerates incremental compilation by detecting changed files with Watchman, gathering project metadata, invoking javac/kotlinc and AAPT2 for on‑demand builds, and hot‑loading Dex and resources at runtime, cutting average incremental build time from 110 seconds to 15 seconds and saving thousands of developer hours.
The article explains the evolution, advantages, challenges, and current status of Android plugin technology, then details JD's Aura plugin framework—including its layered architecture, class and resource loading mechanisms, management tools, upgrade process, and future considerations—for large‑scale mobile app development.
This tutorial explains how to prepare a Java development environment, create a Gradle project, configure JUnit 5 and Selenium Jupiter, write a basic Selenium WebDriver test, and run the test using Gradle Wrapper, providing all required tools and code examples.
Youzan’s EnjoyDependence Gradle plugin dramatically speeds Android full builds—cutting compilation of their 450K‑line, Kotlin‑heavy project from over 15 minutes to under three—by managing dependencies, publishing AARs, and swapping source modules with prebuilt artifacts without altering project structure, while remaining stable and easy to adopt.
This article explains why Android projects adopt componentization, outlines its goals, presents a three‑layer architecture, and provides step‑by‑step instructions for creating modules, managing Gradle settings, handling manifests, routing, event buses, and enabling independent module execution to improve maintainability and development efficiency.
This article demonstrates how to define and run custom Gradle tasks using the Groovy DSL, explains the difference between configuration and execution phases, shows task dependencies, and provides examples such as copy tasks and packaging tasks for Java projects.
This article compares Gradle and Maven, explains Gradle's advantages for large Java projects, introduces Groovy's benefits, walks through a complete build.gradle example, covers closures, dependency configurations, the Gradle wrapper, and essential tasks, providing practical code snippets and usage tips.
This article explains why coding standards are essential, introduces PMD and Alibaba's p3c plugin, and provides a detailed, code‑rich tutorial on designing, implementing, testing, and packaging custom Java static‑analysis rules to enforce @RequestMapping conventions.
This guide explains the Gradle --continue option, shows a sample build script with a deliberately failing task, demonstrates command‑line runs with and without the flag, and reveals how Gradle executes remaining tasks while reporting all failures.
This article explains how Groovy, combined with Gradle, can serve as a native application server to synchronize environment‑specific property files with a MySQL registry, demonstrating practical build‑script configuration, file‑system traversal, and Groovy‑SQL database operations for robust CI/CD workflows.
The article outlines how integrating CheckStyle, Lint, and FindBugs with a custom Gradle plugin, applying full‑scan optimizations to collect only necessary source and class files and implementing incremental scans that target only files changed in a PR, cuts Android CI static‑analysis time by over 50 %, dropping full scans from nine to five minutes and enabling sub‑minute incremental checks.
This article explains the differences between CI, continuous delivery, and continuous deployment, then details a Jenkins‑based pipeline that uses Gradle, 4399AT, Sonar, GitLab, Tomcat, and Nginx to automate building, testing, and reporting for Android applications.
An overview of the most widely used Java build tools—Ant with Ivy, Maven, and Gradle—detailing their histories, core features, advantages, limitations, and typical usage scenarios, along with links to official sites and a brief note on related CI platforms.
This article introduces Kotlin DSL concepts, demonstrates real‑world applications such as Trip.com payment network encapsulation, overseas payment SDK Gradle scripts, Anko layouts, and provides a step‑by‑step example for creating a custom DSL, highlighting benefits, trade‑offs, and best practices for mobile development.
This guide explains how to set up Maven, Ant, Gradle, and NPM in Jenkins, covering system prerequisites, installation steps, Jenkins configuration, and frequently used build commands for each tool.
This article explains two practical approaches for handling private JAR dependencies in a Gradle‑based Jenkins CI pipeline, including fixed path assignment and automated network‑based retrieval, and provides a complete Gradle script example illustrating the implementation.
The author encountered a "cannot find symbol" error when Java and Groovy code called each other, which worked locally but broke on Jenkins and Gradle builds, and solved it by renaming the file to .groovy and adding the Groovy plugin so Groovy compiles before Java.
This tutorial shows how to clone a sample Android Gradle repository, build both debug and release APKs using the Gradle wrapper, and upload the generated packages to the Fir platform for testing on mobile devices.
This tutorial explains how to download and install JDK 8, set up Android SDK tools, install Gradle, and configure environment variables on a Linux system, including verification commands and a brief FAQ for common issues.
The author encountered a Gradle build failure on Windows due to an incorrect lock‑file path in the default C: drive, tried various fixes like adjusting Gradle paths and environment variables, and ultimately resolved the issue by moving the project to a D: drive, highlighting Windows permission nuances.
This guide explains how to locate the Android SDK path in Jenkins, list available SDK components, upgrade a specific version of the tools and build‑tools, and verify the update so that Jenkins can successfully build Android APK packages after a toolchain upgrade.
This tutorial explains how to set up the development environment, create a plugin project using DevKit or Gradle, configure plugin.xml and build.gradle, implement a Hello World action, package, install, and manage the plugin, as well as handle components, UI extensions, and data persistence in IntelliJ IDEA.
This article describes how the Smart Train Ticket Android team adopted a componentization architecture—splitting base libraries and business modules, configuring independent and integrated builds, handling inter‑module communication, and solving manifest and multi‑flavor packaging challenges—to reduce coupling and dramatically improve build performance.
Youzan refactored its Android Micro Mall and Retail apps from a monolithic codebase into a service‑oriented, componentized architecture where each business module inherits a BaseModule with its own lifecycle, common utilities are extracted into lightweight libraries, and a custom Gradle plugin enables independent building, publishing, and rapid iteration.
This guide explains how to integrate Maven, Ant, Gradle, and NPM with Jenkins, covering prerequisites, installation steps, Jenkins configuration, and common build commands for each tool, including setting environment variables, creating Jenkinsfiles, and verifying the setup with test builds.
This guide explains the purpose of the mica-boot-test component, shows how to add its Maven or Gradle dependency, and provides two example test classes demonstrating the use of @MicaBootTest with either @RunWith(MicaSpringRunner.class) or inheritance from MicaBaseTest.