Gradle Newsletter, March 2017 ======== ## Major News Welcome to the March 2017 Gradle newsletter! We are working hard on the upcoming Gradle 3.5 release. Toward that end, we announced the [new release candidate, RC3][1], which provides a new build cache as well as an improved console for parallel builds. There is now a [Gradle Profiler][2] available as well, to automate performance measurements and profiling of Gradle builds. Two major presentations are notable this month. First, [Stefan Oehme recorded a webinar with Trisha Gee][3] from JetBrains on how to take advantage of composite builds with IntelliJ IDEA. Second, [Hans Dockter gave a well-received talk with Xavier Ducrohet][4](video), Lead of Android Developer Tools, on the major performance improvements for building Android applications and libraries with Gradle and the Gradle Android plugin. The talk was given to a large, enthusiastic audience at the San Francisco Android User Group. We also invite the community to help us improving Gradle configuration time, by providing us data from real-world Java builds with configuration times above 1s. See instructions on [Github][5] https://github.com/gradle/gradle/issues/1628 for details on how to participate. The configuration time for Android projects is dramatically improved in Android Plugin 2.5. Until that version is stable, we don't think that profiling Android builds is worth your time. Links for everything are here: * [Gradle 3.5 RC 3][1] is now available, featuring a new build cache and new console output! The full 3.5 release expected very soon and will be covered in the April newsletter. * [Gradle Profiler][2] lets you automate performance measurements of Gradle builds either with Gradle build scans or [YourKit][6], [JProfiler][7], [Honest Profiler][8], among other tools. * [Buildship 2.0.1][9] is now available through the Eclipse Marketplace. The latest release contains several bug fixes for issues identified by the community. You can now follow the project on [GitHub][10] at with the ZenHub extension in your browser. * [Gradle images on Docker][11]. Gradle images now available in the official Docker repository, featuring Gradle 3.4.1 on Java 7 and 8. * [gradle-script-kotlin version 0.8][12] is a major update and will be included in Gradle 3.5. The plugin now uses Kotlin 1.1 with the new co-routines support. * [Hans Dockter on Extremely Fast Android Builds with Gradle][4](video): Hans and Xavier Ducrohet spoke at the San Francisco Android User Group on March 28 that discussed the major performance improvements coming in version 2.5 of the Android plugin for Gradle. * [IntelliJ Webinar on Gradle Composite Builds][3] by Stefan Oehme and Trisha Gee demonstrates how to use the composite build capabilities. Stefan covered the basic use cases and shows how easy it is to use, and Trisha demonstrated the excellent IDE support. * [Gradle configuration time initiative][13]: get configuration time insights from real world builds. We invite the community to help us find the biggest performance problems during configuration time on “Java Enterprise” projects. See the link for details about how to run a build that can supply the team with performance information. ## Featured Plugins and Integrations * The [Pony Gradle Plugin][14] lets you compile [Pony][15] sources and resolve dependencies. Pony is a language for provably safe, lockless concurrency. It is an open-source, secure language that uses an actor model for high-performance concurrency. * The [dependency lock plugin][16] from Netflix can generate a lock file that contains explicit versions for each of your Gradle dependencies. This makes it easy to produce predictable and reproducible builds. ## Upcoming Event * Jun 22-23: [Gradle Summit][17]. This is the featured event of the year. The focus is on increasing developer productivity with Gradle. Registration is open now. The call for papers (summit.gradle.com/speak) ends April 7th, so if you are interested in presenting, please add your proposal as soon as possible. ## Upcoming Trainings - Apr 25-28: **$100** [Advanced Gradle Fundamentals for Java/JVM][18] (Online) - Jun 19-21: [Gradle In-Depth][19] (Palo Alto) This course occurs prior to the Gradle Summit. Those attending the Summit will receive a $200 discount on the training course. ## The New Build Cache The Gradle [build cache][20] is a cache mechanism that aims to save time by reusing outputs produced by other builds. The build cache works by storing (locally or remotely) build outputs and allowing builds to fetch these outputs from the cache when it is determined that inputs have not changed, avoiding the expensive work of regenerating them. A first feature using the build cache is task output caching. Essentially, task output caching leverages the same intelligence as up-to-date checks that Gradle uses to avoid work when a previous local build has already produced a set of task outputs. But instead of being limited to the previous build in the same workspace, task output caching allows Gradle to reuse task outputs from any earlier build in any location on the local machine. When using a shared build cache for task output caching this even works across developer machines and build agents. -- Gradle Inc. 325 9th Street San Francisco, CA 94103 https://gradle.org %%unsubscribe%% (Unsubscribe from future Gradle emails) [1]: https://docs.gradle.org/3.5-rc-3/release-notes.html [2]: https://github.com/gradle/gradle-profiler [3]: https://www.youtube.com/watch?v=grPJanXfRPg [4]: https://youtu.be/BKRK4SvMtRk [5]: https://github.com/gradle/gradle/issues/1628 [6]: https://www.yourkit.com/ [7]: https://www.ej-technologies.com/products/jprofiler/overview.html [8]: https://github.com/RichardWarburton/honest-profiler [9]: https://discuss.gradle.org/t/buildship-2-0-1-is-now-available/21810 [10]: https://github.com/eclipse/buildship [11]: https://hub.docker.com/_/gradle/ [12]: https://twitter.com/gradle/status/845321424696819712 [13]: https://twitter.com/gradle/status/847117739764301824 [14]: https://github.com/renatoathaydes/pony-gradle-plugin [15]: http://www.ponylang.org/ [16]: https://jkutner.github.io/2017/03/29/locking-gradle-dependencies.html [17]: https://summit.gradle.com [18]: https://www.eventbrite.com/e/advanced-gradle-fundamentals-for-javajvm-tickets-31064103570 [19]: https://www.eventbrite.com/e/gradle-in-depth-training-palo-alto-tickets-29778177330 [20]: https://docs.gradle.org/3.5-rc-3/release-notes.html#faster-builds-with-the-gradle-build-cache