-
Book Overview & Buying
-
Table Of Contents
arc42 by Example
By :
This chapter describes the strategy we used to approach problems in the past and how we will approach them in the future.
The first docToolchain tasks evolved from standalone scripts that were executed from the command line. The next logical step was to include them in a build system.
In Gradle, it is relatively straightforward to be able to include a Groovy-based script as a new task:
task newTask (
description: 'just a demo',
group: 'docToolchain'
) {
doLast {
// here you can put any Groovy script
}
}
The original build.gradle soon grew into a huge single file. To make it more modular, we split it up into so-called script-plugins (https://docs.gradle.org/current/userguide/plugins.html#sec:script_plugins). You extract tasks that belong together in an extra .gradle file (for...
Change the font size
Change margin width
Change background colour