<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0"><channel><title>分类：Gradle - LT技术站</title><link>https://lautung.com/categories/gradle</link><atom:link href="https://lautung.com/categories/gradle/feed/categories/gradle.xml" rel="self" type="application/rss+xml"/><description>纸上得来终觉浅，绝知此事要躬行！</description><generator>Halo v2.27.2</generator><language>zh-cn</language><image><url>https://lautung.com/upload/ChatGPT%20Image%202026%E5%B9%B47%E6%9C%8810%E6%97%A5%2002_45_40(1).webp</url><title>分类：Gradle - LT技术站</title><link>https://lautung.com/categories/gradle</link></image><lastBuildDate>Sun, 15 Nov 2026 00:18:41 GMT</lastBuildDate><item><title><![CDATA[Gradle：利用 [bundles] 消除冗余的依赖声明]]></title><link>https://lautung.com/archives/CA5vGgvl</link><description><![CDATA[<img src="https://lautung.com/plugins/feed/assets/telemetry.gif?title=Gradle%EF%BC%9A%E5%88%A9%E7%94%A8%20%5Bbundles%5D%20%E6%B6%88%E9%99%A4%E5%86%97%E4%BD%99%E7%9A%84%E4%BE%9D%E8%B5%96%E5%A3%B0%E6%98%8E&amp;url=/archives/CA5vGgvl" width="1" height="1" alt="" style="opacity:0;">在大型 Android 项目中，有些依赖库往往是“全家桶”出现的。比如： 网络请求：Retrofit + OkHttp + GSON 转换器 + 日志拦截器。 Jetpack Compose：Compose UI + Material 3 + Tooling + Activity Compose。]]></description><guid isPermaLink="false">/archives/CA5vGgvl</guid><dc:creator>LTT</dc:creator><enclosure url="https://lautung.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fzhcover-019c847e-50c1-71eb-ab60-636bcb1c2e51.jpg&amp;size=m" type="image/jpeg" length="28923"/><category>Gradle</category><pubDate>Sun, 22 Feb 2026 08:37:00 GMT</pubDate></item><item><title><![CDATA[Gradle：告别 ext 与 buildscript：老项目平滑迁移到 libs.versions.toml 全记录]]></title><link>https://lautung.com/archives/OHVeKL5Z</link><description><![CDATA[<img src="https://lautung.com/plugins/feed/assets/telemetry.gif?title=Gradle%EF%BC%9A%E5%91%8A%E5%88%AB%20ext%20%E4%B8%8E%20buildscript%EF%BC%9A%E8%80%81%E9%A1%B9%E7%9B%AE%E5%B9%B3%E6%BB%91%E8%BF%81%E7%A7%BB%E5%88%B0%20libs.versions.toml%20%E5%85%A8%E8%AE%B0%E5%BD%95&amp;url=/archives/OHVeKL5Z" width="1" height="1" alt="" style="opacity:0;">接手一个几年历史的老项目，打开 build.gradle，映入眼帘的往往是臃肿的 buildscript 块、散落各处的 ext { ... } 变量，以及各个子模块里相互打架的版本号。 如果你想让项目焕然一新，接入 Gradle 官方推荐的 Version Catalog (TOML) 是必经之路]]></description><guid isPermaLink="false">/archives/OHVeKL5Z</guid><dc:creator>LTT</dc:creator><enclosure url="https://lautung.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fzhcover-019c8478-0434-72af-b9e1-cb5e1fefdabd.jpg&amp;size=m" type="image/jpeg" length="33432"/><category>Gradle</category><pubDate>Sun, 22 Feb 2026 08:34:22 GMT</pubDate></item><item><title><![CDATA[Gradle：深入理解Version Catalog、libs.versions.toml、alias 与 apply false]]></title><link>https://lautung.com/archives/nxrX0m2m</link><description><![CDATA[<img src="https://lautung.com/plugins/feed/assets/telemetry.gif?title=Gradle%EF%BC%9A%E6%B7%B1%E5%85%A5%E7%90%86%E8%A7%A3Version%20Catalog%E3%80%81libs.versions.toml%E3%80%81alias%20%E4%B8%8E%20apply%20false&amp;url=/archives/nxrX0m2m" width="1" height="1" alt="" style="opacity:0;">升级一个 Gradle 插件或者库的版本，你需要在十几个 build.gradle 文件里疯狂搜索、替换，稍有不慎就会因为版本不一致导致编译失败。为了解决这个问题，Gradle 经历了从 ext 闭包管理到 buildSrc 的演进，最终在 Gradle 7.0+ 拿出了目前的终极方案：Versio]]></description><guid isPermaLink="false">/archives/nxrX0m2m</guid><dc:creator>LTT</dc:creator><enclosure url="https://lautung.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fzhcover-019c846c-3523-76de-a118-989ee8b28c7a.jpg&amp;size=m" type="image/jpeg" length="33177"/><category>Gradle</category><pubDate>Sun, 22 Feb 2026 08:21:00 GMT</pubDate></item><item><title><![CDATA[Gradle: Plugins 引入与 Classpath 引入：到底有啥区别？]]></title><link>https://lautung.com/archives/bbCDOc17</link><description><![CDATA[<img src="https://lautung.com/plugins/feed/assets/telemetry.gif?title=Gradle%3A%20Plugins%20%E5%BC%95%E5%85%A5%E4%B8%8E%20Classpath%20%E5%BC%95%E5%85%A5%EF%BC%9A%E5%88%B0%E5%BA%95%E6%9C%89%E5%95%A5%E5%8C%BA%E5%88%AB%EF%BC%9F&amp;url=/archives/bbCDOc17" width="1" height="1" alt="" style="opacity:0;">在配置 Android 或 Java 项目时，你一定见过两种引入插件的方式：一种是在 plugins {} 块里写 id，另一种是在 buildscript {} 里写 classpath。 很多同学会觉得：“能跑就行，管它什么区别？”但当项目变大、构建变慢或者依赖冲突时，搞不清楚这两者的逻辑就会让]]></description><guid isPermaLink="false">/archives/bbCDOc17</guid><dc:creator>LTT</dc:creator><enclosure url="https://lautung.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fzhcover-019c844e-0c26-701e-b4af-60bd0d192c70.jpg&amp;size=m" type="image/jpeg" length="30252"/><category>Gradle</category><pubDate>Sun, 22 Feb 2026 07:44:00 GMT</pubDate></item></channel></rss>