Gradle 5.0 - what's new

 3r3142. 3r3-31. 3r3125.
In the process of developing CUBA, we used all three basic build tools - we started with Ant, then switched to Maven for a short time, and now we use Gradle and it looks like we’ll stay with him soon.
3r33130. 3r3128.  3r3142. 3r3125.
Not so long ago, Gradle 5.0 was released. This version has a large number of new features that will help developers write more complex scripts and build their projects even faster and more painless.
3r33130. 3r3128.  3r3142. 3r3125. Gradle 5.0 - what's new 3r33130. Kotlin DSL . Now you can write build scripts in Kotlin, and this really speeds up work due to auto-completion, basically. Also works highlighting syntax errors and other convenient things from IDEA.
Of course, IDEA and for Groovy tries to do all this, but still strong typing makes itself felt. It is claimed that the Kotlin DSL is stable, so you can use it fearlessly.
3r33130. 3r3128.  3r3142. 3r3125. Do I have to go to Kotlin? No, you do not need it, Groovy DSL will be supported, they are not abandoned. Then you need to consider each project separately. To use Kotlin DSL - you need Gradle 5 and JDK at least ? for some cases this may not be applicable. In addition, Groovy provides greater flexibility in writing scripts due to lax typing. In any case, the decision remains with the developers, but if you still decide to switch to Kotlin, that is, 3r3334. migration guide 3r3121. . 3r33130. 3r3128.  3r3142.
Interactive init
3r3128.  3r3142. 3r3125. Now, finally, you can not write a bunch of keys during the initial assembly of the project, but choose the type of project, the language of the build script and even the framework for testing in interactive mode.
We write gradle init - and enjoy.
Supports project generation on Kotlin! 3r33130. 3r3128.  3r3142.
Incremental compilation and processing of annotations 3r3-300. 3r3128.  3r3142. 3r3125. The mechanism continues to develop. incremental compilation (including 3r3356. processing of annotations
libraries of type Lombok) - no need to recompile all the code. You can create 3r3358. own problems
that support incremental compilation. 3r33130. 3r3128.  3r3142. 3r3125. Accelerated build processes through the build cache, optimized work with memory. 3r33130. 3r3128.  3r3142. 3r3125. FailFast Testing - the tests will run starting from the last erroneous (if it was, of course). 3r33130. 3r3128.  3r3142. 3r371. Manage dependencies 3r3–3100. 3r3128.  3r3142. 3r3125. 3r376. Support BOM 3r3121. files
- Hooray!
3r33130. 3r3128.  3r3142. 3r3125. Declared 3r3384. fine tuning 3r3121. substitution rules, you can write program code to handle particularly complex cases right in 3r-366. assembly file 3r3121. . In the same place - shutdown of transitive dependences. 3r33130. 3r3128.  3r3142. 3r3125. You can forcibly install a dependency version and prohibit overlapping it with older versions. 3r33130. 3r3128.  3r3142. 3r3125. And, in addition to everything, “freezing” of versions is supported for dependencies. 3r33130. 3r3128.  3r3142.
New API for tasks 3-333100. 3r3128.  3r3142. 3r3125. The process of improvement in the area of ​​creating tasks continues. There are a few new things here that will surely come in handy for many. 3r33130. 3r3128.  3r3142. 3r3125. 3r3108. Worker API 3r3121. , which allows you to run tasks in parallel and with different levels of isolation (even on different JVMs possible). In addition to just parallel execution, you can make wait for the completion of other tasks. 3r33130. 3r3128.  3r3142. 3r3125. 3r3114. Timeout API 3r3121. - to set the maximum time to complete the task. 3r33130. 3r3128.  3r3142. 3r3125. Configuration Avoidance API - allows you not to create or configure tasks that still will not be executed. 3r33130. 3r3128.  3r3142. 3r3125.
Summing up - a good tool gets even better, for kotlin - a special thank you, now you can write everything on it: front-end, back-end, mobile client and build scripts.
3r3128.  3r3142. 3r33130. 3r3138. 3r3142. 3r3142. 3r3142.
3r3142. 3r3138. 3r3142. 3r3142. 3r3142. 3r3142.
+ 0 -

Add comment