Cargando…

Gradle Effective Implementations Guide - Second Edition /

Annotation

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Ikkink, Hubert Klein (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing, 2016.
Edición:Second edition.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Starting with Gradle; Declarative builds and convention over configuration; Support for Ant Tasks and Maven repositories; Incremental builds; Multi-project builds; Gradle Wrapper; Free and open source; Getting started; Installing Gradle; Installing with SKDMAN!; Writing our first build script; Default Gradle tasks; Task name abbreviation; Executing multiple tasks; Command-line options; Logging options; Changing the build file and directory; Running tasks without execution.
  • Gradle daemonProfiling; Offline usage; Understanding the Gradle graphical user interface; Task tree; Favorites; Command line; Setup; Summary; Chapter 2: Creating Gradle Build Scripts; Writing a build script; Defining tasks; Defining actions with the Action interface; Build scripts are Groovy code; Defining dependencies between tasks; Defining dependencies via tasks; Defining dependencies via closures; Setting default tasks; Organizing tasks; Adding a description to tasks; Grouping tasks together; Getting more information about a task; Adding tasks in other ways; Using task rules.
  • Accessing tasks as project propertiesAdding additional properties to tasks; Avoiding common pitfalls; Skipping tasks; Using onlyIf predicates; Skipping tasks by throwing StopExecutionException; Enabling and disabling tasks; Skipping from the command line; Skipping tasks that are up to date; Summary; Chapter 3: Working with Gradle Build Scripts; Working with files; Locating files; Using file collections; Working with file trees; Copying files; Archiving files; Project properties; Defining custom properties in script; Defining properties using an external file.
  • Passing properties via the command lineDefining properties via system properties; Adding properties via environment variables; Using logging; Controlling output; Using the Gradle Wrapper; Creating wrapper scripts; Customizing the Gradle Wrapper; Summary; Chapter 4: Using Gradle for Java Projects; Why plugins?; Getting started with the Java plugin; Using the Java plugin; Working with source sets; Creating a new source set; Custom configuration; Working with properties; Creating Javadoc documentation; Assembling archives; Summary; Chapter 5: Dependency Management; Dependency configuration.
  • RepositoriesAdding Maven repositories; Adding Ivy repositories; Adding a local directory repository; Defining dependencies; Using external module dependencies; Using project dependencies; Using file dependencies; Using client module dependencies; Using Gradle and Groovy dependencies; Accessing configuration dependencies; Setting dynamic versions; Resolving version conflicts; Adding optional ANT tasks; Using dependency configurations as files; Summary; Chapter 6: Testing, Building, and Publishing Artifacts; Testing our projects; Using TestNG for testing; Configuring the test process.