gradle 默认属性
Properties(未翻译)
| Property | Description |
allprojects |
包含该项目及其子项目的属性 |
ant |
The |
artifacts |
Returns a handler for assigning artifacts produced by the project to configurations. |
buildDir |
The build directory of this project. The build directory is the directory which all artifacts are generated into. The default value for the build directory is |
buildFile |
The build file Gradle will evaluate against this project object. The default is |
buildscript |
The build script handler for this project. You can use this handler to query details about the build script for this project, and manage the classpath used to compile and execute the project's build script. |
childProjects |
The direct children of this project. |
configurations |
The configurations of this project. |
convention |
The |
defaultTasks |
The names of the default tasks of this project. These are used when no tasks names are provided when starting the build. |
dependencies |
The dependency handler of this project. The returned dependency handler instance can be used for adding new dependencies. For accessing already declared dependencies, the configurations can be used. |
description |
The description of this project. |
extensions |
Allows adding DSL extensions to the project. Useful for plugin authors. |
gradle |
The |
group |
The group of this project. Gradle always uses the |
logger |
The logger for this project. You can use this in your build file to write log messages. |
logging |
The |
name |
The name of this project. The project's name is not necessarily unique within a project hierarchy. You should use the |
parent |
The parent project of this project, if any. |
path |
The path of this project. The path is the fully qualified name of the project. |
pluginManager |
Incubating
The plugin manager for this plugin aware object. |
plugins |
The container of plugins that have been applied to this object. |
project |
Returns this project. This method is useful in build files to explicitly access project properties and methods. For example, using |
projectDir |
The directory containing the project build file. |
properties |
The properties of this project. See here for details of the properties which are available for a project. |
repositories |
Returns a handler to create repositories which are used for retrieving dependencies and uploading artifacts produced by the project. |
resources |
Provides access to resource-specific utility methods, for example factory methods that create various resources. |
rootDir |
The root directory of this project. The root directory is the project directory of the root project. |
rootProject |
The root project for the hierarchy that this project belongs to. In the case of a single-project build, this method returns this project. |
state |
The evaluation state of this project. You can use this to access information about the evaluation of this project, such as whether it has failed. |
status |
The status of this project. Gradle always uses the |
subprojects |
The set containing the subprojects of this project. |
tasks |
The tasks of this project. |
version |
The version of this project. Gradle always uses the |
详情参考官方文档:
https://docs.gradle.org/current/dsl/org.gradle.api.Project.html
https://docs.gradle.org/current/dsl/index.html
https://docs.gradle.org/current/userguide/userguide.html
gradle 默认属性的更多相关文章
- VB默认属性、动态数组、Range对象的默认属性的一点不成熟的想法
1.默认属性 VB6.0有默认属性的特性.当没有给对象指定具体的属性时,"默认属性"是VB6.0将使用的属性.在某些情形下,省略常用属性名,使代码更为精简. 因为CommandBu ...
- 查看特定View的默认属性值
当我在分析focus.touch事件处理代码时发现,有些属性对代码的逻辑有非常重要的影响,比如clickable.focusable 这些属性.这时我们自然而然的想到,那么这些属性的默认值是什么呢?在 ...
- iOS @property的默认属性
我是一个比较懒的人,很多情况下@property都不喜欢加属性…所以必须了解默认情况下哪些是已经有的,哪些在需要时是必须要加的. 原文链接:http://blog.sina.com.cn/s/blog ...
- Gradle的属性设置大全
Gradle作为一款项目构建工具,由于其强大.灵活.快速.完全兼容Ant等特性,越来越受到人们欢迎.Gradle的灵活有时候也会引起人们的困惑.比如在Gradle中设置变量和属性就有N种办法.由于Gr ...
- Normalize.css:优化重置CSS默认属性
Normalize.css:优化重置CSS默认属性 官方网站:http://necolas.github.io/normalize.css/ 项目仓库:https://github.com/necol ...
- PropertyGrid—默认属性,默认事件,属性默认值
零.引言 PropertyGrid显示一个对象的属性和事件时,可以设置其默认属性和事件,也就是当你选中对象时,propertyGrid中焦点在哪一个属性或事件上.为对象的属性提供默认值,使Proper ...
- 属性“dataProvider”有多个初始值设定项。(注意:“dataProvider”是“mx.charts.BarChart”的默认属性)。
1.错误描写叙述 属性"dataProvider"有多个初始值设定项.(注意:"dataProvider"是"mx.charts.BarChart&q ...
- get_class_vars 返回由类的默认属性组成的数组
get_class_vars (PHP 4, PHP 5) get_class_vars - 返回由类的默认属性组成的数组 说明 array get_class_vars ( string $clas ...
- React 学习(二) ---- props验证与默认属性
在上一节中, 我们提到了props, 组件之间数据的传递使用props. 我们调用组件时可以设置props, 组件内部通过props获取. 为了props 使用更加友好, React 提供了简单的验证 ...
随机推荐
- 【CodeForces 699B】One Bomb
r[i],c[i]分别表示第i行有几个*,第i列有几个*. 枚举每个位置如果c[i]+r[j]-(本身是不是*)==总*数,则该位置即为答案. #include<cstdio> #incl ...
- 【BZOJ-4059】Non-boring sequences 线段树 + 扫描线 (正解暴力)
4059: [Cerc2012]Non-boring sequences Time Limit: 10 Sec Memory Limit: 128 MBSubmit: 440 Solved: 16 ...
- 【BZOJ-2937】建造酿酒厂 前缀和 + 展环为链 + 乱搞
2937: [Poi2000]建造酿酒厂 Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 70 Solved: 24[Submit][Status][D ...
- Slave2: no datanode to stop(权限)
有些datanode没有启动,要么是id不一致,我删除了还是不行,要么是权限问题,我邮件属性查看权限,发现不是hxsyl组,我删除,重建.
- SQLServer日期格式化
0 或 100 (*) 默认值 mon dd yyyy hh:miAM(或 PM) 1 101 美国 mm/dd/yyyy ...
- [NOIP2012] 普及组
寻宝 大模拟 #include<iostream> #include<cmath> #include<algorithm> using namespace std; ...
- dedecms /include/helpers/archive.helper.php SQL Injection Vul
catalog . 漏洞描述 . 漏洞触发条件 . 漏洞影响范围 . 漏洞代码分析 . 防御方法 . 攻防思考 1. 漏洞描述 Dedecms会员中心注入漏洞 Relevant Link: http: ...
- Linux Process Management && Process Scheduling Principle
目录 . 引言 . 进程优先级 . 进程的生命周 . 进程表示 . 进程管理相关的系统调用 . 进程调度 . 完全公平调度类 . 实时调度类 . 调度器增强 . 小结 1. 引言 在多处理器系统中,可 ...
- sublime编写markdown文件中Ctrl+B的作用
今天,手残,用markdown编辑是按了Ctrl+B,结果发现直接在同一文件夹目录下编译生成了html文件,之前都是Alt+m,可以直接预览,可是后来由于系统更新还是什么,Alt+m只会在用户目录(而 ...
- POJ 2976 Dropping tests(最大化平均值 or 01整数规划)
题目链接 忽略运算符逻辑导致奇怪的错误(代码中指明位置了) 输出没加0.5,WA. 还有,注意特殊情况k=0,所以scanf("%d%d", &n, &k)& ...