Gradle & Groovy intro
2015-06-06 06:48
295 查看
https://github.com/udacity/ud867
1.
Gradle is a project automation tool that builds upon the concepts of Apache Ant and Apache Mavenand introduces a Groovy-based domain-specific language (DSL) instead of the more traditional XMLform of declaring the project configuration. Gradle uses a directed acyclic graph ("DAG") to determine the order in which tasks can be run.
Gradle was designed for multi-project builds which can grow to be quite large, and supports incremental builds by intelligently determining which parts of the build tree are up-to-date, so that any task dependent upon those parts will not need to be re-executed.
The initial plugins are primarily focused around Java, Groovy and Scala development and deployment, but more languages and project workflows are on the roadmap.
2.
Groovy is an object-oriented programming language for the Java platform. It is a dynamic languagewith features similar to those of Python, Ruby, Perl, and Smalltalk. It can be used as a scripting language for the Java Platform, is dynamically compiled to Java Virtual Machine (JVM) bytecode, and interoperates with other Java code and libraries. Groovy uses a Java-like curly-bracket syntax. Most Java code is also syntactically valid Groovy, although semantics may be different.
3. how to run gradle
(1) create a file called "build.gradle", this is the default file that gradle will execute
(2)run command
this command will execute the "build.gradle" file without execute any task in this file.
this command will execute the task called "hello" in the "build.gradle" file
1.
Gradle is a project automation tool that builds upon the concepts of Apache Ant and Apache Mavenand introduces a Groovy-based domain-specific language (DSL) instead of the more traditional XMLform of declaring the project configuration. Gradle uses a directed acyclic graph ("DAG") to determine the order in which tasks can be run.
Gradle was designed for multi-project builds which can grow to be quite large, and supports incremental builds by intelligently determining which parts of the build tree are up-to-date, so that any task dependent upon those parts will not need to be re-executed.
The initial plugins are primarily focused around Java, Groovy and Scala development and deployment, but more languages and project workflows are on the roadmap.
2.
Groovy is an object-oriented programming language for the Java platform. It is a dynamic languagewith features similar to those of Python, Ruby, Perl, and Smalltalk. It can be used as a scripting language for the Java Platform, is dynamically compiled to Java Virtual Machine (JVM) bytecode, and interoperates with other Java code and libraries. Groovy uses a Java-like curly-bracket syntax. Most Java code is also syntactically valid Groovy, although semantics may be different.
3. how to run gradle
(1) create a file called "build.gradle", this is the default file that gradle will execute
(2)run command
this command will execute the "build.gradle" file without execute any task in this file.
gradlew
this command will execute the task called "hello" in the "build.gradle" file
gradlew hello
相关文章推荐
- Container With Most Water
- PR实战:借力携程事件不花钱获得百万关注
- Python中的Lambda表达式小析
- Linked List专题一(cc charpter2)
- *Next Permutation
- 天龙网游帮会玩法详解 帮会系统详细介绍
- Remove Duplicates from Sorted Array
- *Remove Duplicates from Sorted Array II
- LeetCode "Count Complete Tree Nodes"
- leetcode 222: Count Complete Tree Nodes
- 关于RectTransform的一些研究
- MRI task-base Experiment
- 如何添加".Net Framework Data Provider for MySQL"配置信息到目标主机中?
- BOLD信号产生原理
- #面经准备#RSA EMC
- 6.5 linux
- Combinations
- Python多级排序(多属性排序)csv文件
- x210v3开发板u-boot-2012.10移植之一---uboot版本选择
- 视频会议直播和存储