Curso Introduction to the Gradle Build System
16hVisão Geral
Este Curso Introduction to the Gradle Build System, ensina os fundamentos do sistema de compilação Gradle, que é usado para compilar, testar e implantar projetos Java e/ou Groovy.
Objetivo
- Aprenda o básico da programação Groovy
- Entenda os desafios dos processos de construção
- Use Gradle com as convenções padrão
- Mapear para layouts de projetos alternativos
- Gerenciar dependências
- Declarar repositórios
- Crie tarefas personalizadas
- Use o wrapper Gradle
- Selecione e use plugins Gradle para funcionalidade adicional
- Trabalhe com o gráfico acíclico dirigido por Gadle
- Criar e usar configurações no Gradle
Pre-Requisitos
- Os participantes devem estar familiarizados com Java. Algum conhecimento de Groovy seria útil, mas não é necessário.
Informações Gerais
Carga horaria: 16h
- Se noturno este curso e ministrado de segunda-feira a sexta-feira das 19h às 23h, total de 4 encontros.
- Se aos sábados este curso e ministrado das 09h às 18h, total de 2 encontros.
Formato de entrega:
- 100% on-line ao vivo via Microsoft Teams, na presença de um instrutor/consultor ativo no mercado e docente em sala de aula.
- Nota: não é curso gravado (o mesmo acontece em tempo real na presença de um instrutor).
- Apostila + exercícios práticos
Materiais
InglêsConteúdo Programatico
Introduction
Enough Groovy for Gradle
- The basic Groovy data types and optional typing
- Overriding operators and type coercion
- Groovy strings
- Ranges, lists, and collections
- Closures
Installing Gradle
- Environment variables
- Testing your installation
Quick Tour of Gradle
- Creating build scripts
- Declaring dependencies
- Accessing repositories
- Applying plugins
- Configuring the directed acyclic graph
Building Java Projects
- Standard project structure
- The Java plugin
- Running tests
Building Groovy Projects
- The Groovy project structure
- Working with both Groovy and Java
- Executing tests with both JUnit and Spock
Defining Tasks
- Declaring tasks
- Defining project properties
- Setting dependencies
- Using doFirst and doLast
- Using the builtin task types
- Inserting your tasks into the DAG
Incremental Builds
- Inputs and outputs
- Using onlyIf
- Refreshing the cache
The Gradle Daemon
- Usage and troubleshooting
- Configuring the daemon
Plugins
- Plugins that ship with Gradle
- The standard plugin repository
- Some useful plugins
IDE Integration
- Eclipse projects
- IntelliJ IDEA
The Gradle Wrapper
- Specifying versions
- Generating the scripts
Multiproject Builds
- Using settings.xml
- Consolidating configuration properties
- Making one subproject depend on another