近日尝试利用 Apache Ratis 这个项目包装一个 Raft 协议驱动的状态机的时候,遇到了需要用 Protobuf 传输数据的场景。由于 Gradle 构建工具的门槛和 Java 语言项目的某些惯例碰到了使用上的问题,这里记录一下我在这个玩具项目当中的用例。| 夜天之书
Another Gradle footgun| Zac Sweers
After pairing with Tony Robalik on a recent weird behavior I was seeing in Gradle, we encountered a deliciously evil bug in Gradle. It's documented a little in Gradle 8.7's release notes (see Better API for updating collection properties), but the basic premise is| Zac Sweers
IntelliJ and Android Studio try to constantly reload Gradle projects by default, disabling that behavior can improve your workflow.| Zac Sweers
We cut our end-to-end test times by nearly 30% - and reduced flakiness too! Learn how Wealthfront’s novel test filtering approach made our builds faster and more reliable.| Engineering Blog - Wealthfront
In the previous post - part 2, we covered more common Gradle mistakes and how to fix them. In the last part of this triplet, we will share our favorite Gradle plugins that can help you avoid some of the mistakes we discussed in the previous posts!| blog.allegro.tech
In the previous post - part 1, we covered common Gradle mistakes and how to fix them. After a review and feedback from the community, we decided to extend the list with more tips and best practices.| blog.allegro.tech
As part of Allegro Hacktoberfest celebrations, Andamio Task Force (the team responsible for Andamio, a set of common libraries used by most JVM projects at Allegro) posted the following message on our social platform…| blog.allegro.tech
Kotlin DSL is now the default for new Gradle builds. From now on it will be the default option in the plugins and documentation.| The JetBrains Blog
In one of our core services, the execution of a single unit test took approximately 30 seconds, while a single integration test ranged between 65 and 70 seconds. Running the entire test suite took circa 6 minutes.| blog.allegro.tech
A while ago, I needed to write a program that retrieved some information from the database by using SQL queries located in files. I wanted to add a file that would contain the settings of the app, like the port, SID, login and password for the database, but also the location of those queries. The problem was I couldn’t add those settings to a file in the standard src/groovy/resources folder, because when creating a distribution with Gradle ./gradlew distZip the file would be part of the jar...| Relentless Coding
Have you ever run a Gradle build that failed and seen this message? I remember the first time I saw this message. I was having a particularly difficult time with solving my build issues, so I did what was suggested. After I published the build scan, I saw something like this: Actually it probably didn't … Continue reading "What on earth is a Build Scan, and why do I care?" The post What on earth is a Build Scan, and why do I care? appeared first on Trisha Gee.| Trisha Gee
This post shows how to get started with creating Android apps in Kotlin language using Android Studio 3 and higher.| tech&Life
This post shows how build.gradle can be configured to sign Android APKs automatically without manual interventions.| tech&Life
Most people who start using Kotlin are already familiar with Java and its ecosystem. I, on the other hand, am not one of those people and have been looking for easier ways into the Java ecosystem. I found that Kotlin was probably that softer path back. (I wrote Java in …| cat /dev/brain
Up until now, Probe relied on dynamic view proxies generated at runtime to intercept View calls. Although very convenient, this approach greatly affects the time to inflate your layouts—which limits the number of use cases for the library, especially in more complex apps.| Lucas Rocha
This post shows you how to wrap a 3rd party Gradle plugin in your own plugin, so that you can interactive with it programmatically. We’ll use Gradle composite builds to allow us to build all at once, decreasing the build, test, release cycle.| Blundell