Nebula – Watch Something Smart. Nebula is smart, thoughtful videos from your favorite education-y creators. New videos, back catalog, and Nebula Originals. Video service algorithms reward videos that are easy to click on, easy to watch, and easy to share, because that’s what makes them money. Because of that, when we want to make things.
As was stated earlier, Nebula is composed of a number of Gradle plugins, each serving a unique purpose. There are however logical groupings to some of the plugins. The categories
Gradle provides a substantial dependency management facility, but we have found these capabilities insufficient for the needs of Netflix engineers. As we result, we have built a few plugins that extend Gradle dependency management capabilities.
The goal of the gradle-dependency-lock-plugin is to ensure builds are repeatable over time, by locking the complete transitive dependency graph into a single source file. This particular plugin is useful for:
Check out the gradle-dependency-lock-plugin GitHub page for details on how to use it.
The goal of the nebula-dependency-recommender-plugin is to make it easier to produce and consume a Maven BOM file. This plugin allows library producers to publish a single BOM file that defines a graph of dependency versions that all work together. This plugin also allows library consumers to defer the specification of specific dependency versions to an authoritative BOM producer.
Check out the nebula-dependency-recommender-plugin GitHub page for details on how to use it.
The goal of the gradle-resolution-rules-plugin is provide a mechanism to share dependency rules for all Gradle builds within an entire organization. The rules can be packaged and published using the nebula.resolution-rules-producer
sub-plugin. The rules can be consumed and applied using the nebula.resolution-rules
sub-plugin.
Check out the gradle-resolution-rules-plugin GitHub page for details on how to use it.
All deployments at Netflix are conducted via what we call a “bake”. A bake is the process of taking a base Amazon Machine Image (BaseAMI) and installing the application via its Debian package. This enables us to easily conform to the Immutable Server pattern. Nebula provides a few plugins to help with this process.
The goal of this plugin is to produce a system package, typically an RPM or Debian package.
Check out the gradle-ospackage-plugin GitHub page for details on how to use it.
There are a number of Nebula plugins that assist in the publishing and releasing of software, based on the needs of Netflix services.
The goal of this plugin is to make it dirt simple to publish your Java library to a Maven or Ivy repository without all of the boilerplate Gradle DSL.
Check out the nebula-publishing-plugin GitHub page for details on how to use it.
The goal of this plugin is to simplify a Semantic Versioning approach to releasing Gradle based builds.
Check out the nebula-release-plugin GitHub page for details on how to use it.
The goal of this plugin is to remove much of the boilerplate required in using the existing gradle-bintray-plugin. The goal is allow users to apply the plugin and publish to Bintray with very little ceremony.
Check out the nebula-bintray-plugin page for details on how to use it.
The goal of this plugin is to allow for the execution of Git commands from a Gradle build.
Check out the gradle-git-scm-plugin page for details on how to use it.
The goal of this plugin is to provide tasks that allow the management of a Git repository in a Bitbucket server (formerly Stash).
Check out the gradle-stash-plugin GitHub page for details on how to use it.
The Nebula team has built a variety of additional miscellaneous plugins over time, each with a unique purpose.
The Gradle Lint plugin is a pluggable and configurable linter tool for identifying and reporting on patterns of misuse or deprecations in Gradle scripts and related files. It is inspired by the excellent ESLint tool for Javascript and by the formatting in NPM’s eslint-friendly-formatter package.
It assists a centralized build tools team in gently introducing and maintaining a standard build script style across their organization.
The gradle-java-cross-compile plugin automatically configures the bootstrap classpath when the requested targetCompatibility
is less than the current Java version, avoiding:
The plugin supports Java, Groovy joint compilation, and Kotlin. The plugin locates JDKs via either:
The goal of this project is to make it easy to set up a Java project the Netflix way. While it is tailored to Netflix’s view of project setup, the defaults are sane enough for most projects. Applying this plugin:
*-javadoc.jar
and a *-sources.jar
as build outputsCheck out the nebula-project-plugin page for details on how to use it.
A feature provided by Maven that is missing from Gradle is the <developers/>
section, which denotes the contact information for the owners of the project. The purpose of the gradle-contacts-plugin is to provide comparable features to Gradle.
Check out the gradle-contacts-plugin GitHub page for details on how to use it.
The goal of this plugin is to make it easier to add either an optional
or provided
configuration to an existing Gradle project.
Check out the gradle-extra-configurations-plugin page for details on how to use it.
This plugin allows you to override arbitrary Gradle properties via command line args. Convenient if you want to quickly change values that are normally static for one off builds.
Check out the gradle-override-plugin page for details on how to use it.
An opinionated plugin that wraps the clojuresque gradle plugin, removing the Clojars logic.
Check out the nebula-clojure-plugin page for details on how to use it.
Gradle plugin to setup common needs for Netflix OSS projects
This plugin is to support projects in the NetflixOSS org (and it isn’t meant to be used elsewhere). It is at its essence just a combination of other plugins that are common to all NetflixOSS projects, with some additional configuration. The primary responsibilities is to:
This project could be used as an example of how a “project plugin” could work. A “project plugin” is a Gradle plugin that provides consistency across many projects, e.g. in a Github org or an enterprise.
These plugins don’t provide any significant value by themselves, but generally are used with some other plugin or infrastructure component.
The goal of this plugin is to collect metadata about the environment where the Gradle build is being executed.
Check out the gradle-info-plugin GitHub page for details on how to use it.
This plugin is the foundation of the gradle-git-scm-plugin and can be used to build other scm related Gradle plugins.
Check out the gradle-scm-plugin GitHub page for details on how to use it.
Kotlin library providing extensions to assist with Gradle iterop and backwards compatibility.
Check out the nebula-gradle-interop GitHub page.
The goal of this plugin was to capture and publish metadata and build performance metrics to a centralized location so the Netflix Build Tools team could analyze build trends. The gradle-metrics-plugin publishes a json document to an ElasticSearch cluster by default.
Check out the gradle-metrics-plugin GitHub page for details on how to use it.
The nebula-test plugin was extremely useful in ensuring we can easily test our plugins. However, Gradle has begun to integrate these concepts into Gradle core. As a result, we recommend using Gradle TestKit instead of nebula-test.
The nebula-kotlin plugin was extremely useful in providing the Kotlin plugin via the Gradle plugin portal, and added ergonomic improvements over the default plugin:
targetJdk
if desiredkotlin-allopen
and kotlin-noarg
plugins to allow them to be applied without adding them manually to the classpathHowever, this plugin is in maintenance mode but will continue to receive 1.2 and 1.3 Kotlin releases. JetBrains has deprecated the existing jvm
plugin and replaced it with the multiplatform
plugin.
The multiplatform plugin is a complete migration from the legacy plugin and provides many of the ergonomic features, such as JVM target configuration and Kotlin library version management that this plugin provided. If you have a project that will move to 1.4 once it’s released you should migrate to multiplatform
.
Common classes shared by Nebula plugins. Adds useful Gradle tasks such as Download, Unzip and Untar.