User guide 2023 05 30T173307 236
Gradle User Guide Version CCopyright ? - Hans Dockter Adam Murdoch Copies of this document may be made for your own use and for distribution to others provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright Notice whether distributed in print or electronically CTable of Contents Introduction About this user guide Overview Features Why Groovy Tutorials Getting Started Installing Gradle Prerequisites Download Unpacking Environment variables Running and testing your installation JVM options Troubleshooting Working through problems Getting help Build Script Basics Projects and tasks Hello world A shortcut task de ?nition Build scripts are code Task dependencies Dynamic tasks Manipulating existing tasks Shortcut notations Extra task properties Using Ant Tasks Using methods Default tasks Con ?gure by DAG Where to next Java Quickstart The Java plugin A basic Java project Multi- project Java build Where to next Dependency Management Basics What is dependency management Declaring your dependencies Dependency con ?gurations External dependencies Repositories Publishing artifacts Where to next Groovy Quickstart A basic Groovy project Summary Web Application Quickstart Building a WAR ?le Running your web application C Summary Using the Gradle Command-Line Executing multiple tasks Excluding tasks Continuing the build when a failure occurs Task name abbreviation Selecting which build to execute Obtaining information about your build Dry Run Summary Using the Gradle Graphical User Interface Task Tree Favorites Command Line Setup Writing Build Scripts The Gradle build language The Project API The Script API Declaring variables Some Groovy basics Tutorial - 'This and That' Directory creation Gradle properties and system properties Con ?guring the project using an external build script Con ?guring arbitrary objects Con ?guring arbitrary objects using an external script Caching More about Tasks De ?ning tasks Locating tasks Con ?guring tasks Adding dependencies to a task Ordering tasks Adding a description to a task Replacing tasks Skipping tasks Skipping tasks that are up-to-date Task rules Finalizer tasks Summary Working With Files Locating ?les File collections File trees Using the contents of an archive as a ?le tree Specifying a set of input ?les Copying ?les Using the Sync task Creating archives Using Ant from Gradle Using Ant tasks and types in your build Importing an Ant build Ant properties and references API Logging C Choosing a log level Writing your own log messages Logging from external tools and libraries Changing what Gradle logs The Gradle Daemon Enter the daemon Reusing and expiration of daemons Usage and troubleshooting Con ?guring the daemon The Build Environment Con ?guring the build environment via gradle properties Accessing the web via a proxy Gradle Plugins Types of plugins Applying plugins Applying plugins with the plugins DSL Finding community plugins What plugins do Conventions More on plugins Standard Gradle plugins Language plugins Incubating language plugins Integration plugins Incubating integration plugins Software development plugins Incubating software development plugins Base plugins Third party plugins The Java Plugin Usage Source sets Tasks Project layout Dependency management Convention properties Working with source sets Javadoc Clean
Documents similaires










-
43
-
0
-
0
Licence et utilisation
Gratuit pour un usage personnel Aucune attribution requise- Détails
- Publié le Jui 05, 2022
- Catégorie Management
- Langue French
- Taille du fichier 928.5kB