在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):autonomousapps/gradle-glossary开源软件地址(OpenSource Url):https://github.com/autonomousapps/gradle-glossary开源编程语言(OpenSource Language):开源软件介绍(OpenSource Introduction):Glossary of Gradle termsArtifact'Artifact' is usually used in the context of publishing to designate a file whose name has a 'classifier' and 'extension'. Two artifacts in a Publication cannot have the same classifier and extension. Confusingly, when used in the context of Maven coordinates, an artifactId refers to a list of the above artifacts. For an example, the BuildBuild scriptA ConfigurationA Configuration, at
the most basic level, is a bucket of dependencies. The most common configurations, which most people
would have seen, are While the usage as a bucket of dependencies is the most common for Gradle users, configurations can also be used in other ways by plugin authors:
The word "configuration" is one of the most overloaded in the Gradle world. See also configuration phase. Configuration phaseA Gradle build is composed of two primary phases, the configuration phase (not to be confused with Configuration instances) and the execution phase. The configuration phase happens first and is single-threaded. Convention pluginA Plugin built on top of an ecosystem plugin, and which applies common conventions to the build script that uses the plugin. Ecosystem pluginExecution phaseThe second primary phase of a Gradle build, the execution phase happens after the configuration phase is complete. This is where all tasks actions are executed. This phase has multiple levels of parallelism. GradleGradle is the open-source build system developed and maintained by Gradle, Inc., a for-profit company. Init scriptAn init, or initialization script, is
backed by an instance of the See also Plugin. Maven (build tool)Maven is a build tool like Gradle but using a more declarative syntax based on XML. For publishing dependencies, Maven uses the Maven publication format. Maven (publication format)The Maven publication format is the format used by most of the JVM ecosystem to publish and consume binary dependencies.
Each dependency is identified by a While originally made for the Maven build tool, Gradle also supports the Maven publication format. In order to provide more flexibility, Gradle also introduced Gradle module metadata to provide more information about the dependencies than a regular pom file MavenCentralMavenCentral is the main repository that hosts Maven publications. It is operated by a company named Sonatype and is the default repository for a lot of the ecosystem. Other repositories exists like (now defunct) jcenter or the Google Maven repository. ModuleAn informal term for a Project, but more common than the formal term. A module is a source code-containing directory, more or less independent of other modules in the same multi-module (or multi-project) project. This is one of the other very heavily overloaded terms in the Gradle world. See also Project. PluginGradle is built on a plugin system. Gradle itself is primarily composed of infrastructure, such as a sophisticated dependency resolution engine, common to all project types. The rest of its functionality comes from plugins, including "core" plugins distributed with Gradle itself, third-party plugins, and script plugins in a given build. There are three kinds of plugin, based on the context in which they are applied:
Plugins may be implemented as so-called binary plugins (that is, by explicitly implementing one of the specific generic interfaces described above), or as precompiled script plugins. This distinction is merely an implementation detail. cf. script plugins. Precompiled script pluginEquivalent to a plugin, but written such that it looks like a build script,
precompiled script plugins
can be written in Groovy or Kotlin by applying the ProjectPublicationA Gradle Publication is a list of
artifacts, and possibly associated metadata. Most of the times, you will deal with MavenPublications to publish in the
Maven publication format with the Script pluginA gradle script that can be applied to other gradle scripts, including build scripts,
settings scripts, and init scripts. Can be written in Groovy or
Kotlin, and are applied to other scripts via
PluginAware.apply.
For example, Settings scriptA SoftwareComponentA SoftwareComponent is a list of artifacts
built by Gradle. It’s a relatively recent API used to connect outgoing configurations and publications. Most of the times, you will
use already existing components such as TaskEach projects is made up of one or more tasks. Each task ought to be atomic (but often isn’t), with inputs and outputs. Gradle executes tasks to perform its work. Task examples include: compiling source code, creating artifacts (such as jars or apks), generating Javadoc, running static analysis (e.g. lint), deleting temporary files, or publishing to a repository, etc. When a Gradle task is asked to run we can see the outcome of the task. This will be one of EXECUTED, SKIPPED, FAILED, FROM-CACHE, UP-TO-DATE, NO-SOURCE or blank (meaning executed). |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论