At the end of another tough week in Netflix I look back at what I have achieved and what has been challenging in achieving it. I do wonder what I do looks like from the outside and I can’t really see how someone would make sense of my job. I sit in front of 3 (sometimes more!) […]
Posts Tagged: gradle
Gotcha When Building Gradle Plugins on Top of docker-java-plugin
If you use gradle and docker you must have come across the gradle-docker-plugin. And if you started using it a lot you probably found out that more often than not your builds start using the same boilerplate code to prepare your microservices containers. And if you end up in that situation best thing to avoid boilerplate rubbish […]
Disable PMD Plugin to Run for Test Sources
I use PMD in my Gradle builds quite a bit. (Maybe a bit more nowadays that the FindBugs peeps seem to be struggling with that project — see this email from Andrey on this: https://mailman.cs.umd.edu/pipermail/findbugs-discuss/2016-November/004321.html). The issue I had with it is that there is no way to quickly turn off their checks for the src/test/… […]
PMD Rules
If you have used such plugins in your project as FindBugs, Checkstyle etc then you quite likely have heard of PMD too. (I have used these tools initially with Apache Maven and nowadays use them via Gradle in my builds, but there’s lots of support for others tools, Ant included.) The trouble with PMD as […]
Gradle Multi-module Projects — Centralized Configuration
This is a sweet gradle trick for those of you working on multi-module projects, if you are looking to centralize some of the configuration in the parent gradle build, and avoid repeating configuration / build code across sub-modules. Let’s say you have the following gradle project structure (see image below) where project A is the […]
Small Note on gradle’s afterEvaluate
If you use gradle and you took the path to write your own gradle plugins (try it, it’s fun!) to make your build process more … “enjoyable”, then this might come in handy one day. I have worked on a few gradle plugins, some of them inside the Netflix Nebula suite, some of them outside Netflix […]
Netflix Nebula Gradle Plugin and project.version
If you use the Netflix OSS Nebula plugin in gradle and you use it for automatic versioning, incrementals etc then you will come across this at some point. (And in the case that some of you have already encountered this, I have to ask why did you not write the blog post I needed when […]
Specify File Order for Combining JavaScript Files through gradle-js-plugin
If you use Gradle builds to combine and minify JavaScript source files via the gradle-js-plugin (thanks, Eric!), you might have run into the same problem as I did: ordering of the files! The Github docco doesn’t mention (yet!) anything around it and you are left to guess that doing something like this will sort out […]
Checkstyle, Findbugs, PMD and the Likes
I’ve been using the above (and a few others like CodeNarc) code quality plugins for quite a bit and I thought I’d give my 2 cents here on a matter of style: the way you can suppress checks in each of these tools. I do like the way Checkstyle allows you to define what to […]
Managing Project Dependencies with Gradle
This is a set of slides that I’ve put together to showcase how we use Gradle in Netflix Ads Engineering to help with dependency management. It goes through multi-module project vs separate Gradle project per module, using properties file with Gradle to specify dependency versions and also how to use the Nebula gradle-dependency-lock to lock […]