开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
开源项目 > 程序开发 > 编程语言/脚本语言 &&
捐赠
捐赠前请先登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
7 Star 23 Fork 0

Apache/Groovy

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
master
分支 (792)
标签 (303)
master
gh-pages
GROOVY-12065
GROOVY_5_0_X
feature/GROOVY-12117/edge_cases
dependabot/gradle/com.gradle.develocity-4.4.3
GROOVY-12096
feature/GROOVY-12069/save_unreflect
feature/GROOVY-12068/short_paths
dependabot/gradle/com.gradle.develocity-4.4.2
GROOVY-11935-2
GROOVY-12046
feature/Cache_changes
fatFreeSpike
GROOVY-12024
GROOVY_4_0_X
GROOVY-12019
groovy12039
feature/GROOVY-12022/deprecate_IndyStaticTypesMultiTypeDispatcher
GROOVY-12035
GROOVY_6_0_0_ALPHA_2
GROOVY_5_0_7
GROOVY_6_0_0_ALPHA_1
GROOVY_5_0_6
GROOVY_4_0_32
GROOVY_5_0_5
GROOVY_4_0_31
GROOVY_5_0_4
GROOVY_4_0_30
GROOVY_5_0_3
GROOVY_4_0_29
GROOVY_5_0_2
GROOVY_5_0_1
GROOVY_5_0_0
GROOVY_5_0_0_RC_1
GROOVY_4_0_28
GROOVY_5_0_0_BETA_2
GROOVY_4_0_27
GROOVY_5_0_0_BETA_1
GROOVY_3_0_25
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
新建文件
新建子模块
上传文件
贡献代码
同步代码
对比差异 通过 Pull Request 同步
同步更新到分支
通过 Pull Request 同步
将会在向当前分支创建一个 Pull
Request,合入后将完成同步
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

Apache Groovy

medium

Apache License 2 codecov Groovy is a powerful multi-faceted programming language for the JVM platform. It supports a spectrum of programming styles incorporating features from dynamic languages such as optional and duck typing, but also static compilation and static type checking at levels similar to or greater than Java through its extensible static type checker. It aims to greatly increase developer productivity with many powerful features but also a concise, familiar and easy to learn syntax.

It integrates smoothly with any Java class or library, and immediately delivers to your application powerful capabilities, including scripting support, Domain-Specific Language authoring, runtime and compile-time meta-programming and functional programming.

Downloading

Distribution links are on the Obtaining the Source

You don’t need the source code to use Apache Groovy but if you wish to explore its inner workings or build it for yourself there are two ways to obtain the source files.

Checking out from Version Control

Apache Groovy uses Git. The official Git repository is at:

https://gitbox.apache.org/repos/asf/groovy.git

And a mirror is hosted on GitHub:

https://github.com/apache/groovy

The GitHub mirror is read-only and provides convenience to users and developers to explore the code and for the community to accept contributions via GitHub Pull Requests.

Simply git clone the repo (or the repo you forked via the GitHub website) and you will have the complete source.

Unpacking the src distribution

Alternatively, you can download the source distribution and unpack it.

If obtaining the source from the source distribution and you intend to build from source, you also need to Gradle and use it to execute one bootstrap step.

Bootstrapping Gradle

As mentioned in the previous paragraph, if you download the source distribution you need to bootstrap Gradle. This isn’t needed if you clone from the GitHub repo.

Each version of Groovy is built and tested using a specific version of Gradle. That version is specified by the gradle_version property defined in the gradle.properties file within the root directory. Luckily you shouldn’t need to know that version and, after bootstrapping, you should use the gradlew command which will ensure the correct version is always used.

The version of Gradle used for the bootstrap step has some flexibility though in general you might need to download a version similar to the version of Groovy the build is expecting.

To bootstrap Gradle, at the top directory of your unpacked source, run the command:

gradle -p bootstrap
Note
At this point, the Gradle wrapper should be set up and from now on you should use the gradlew command instead of gradle. (On Unix-like systems, use ./gradlew).

Building from Source

To build you will need:

To build everything using Gradle, use the following command (./gradlew on Unix-like systems):

gradlew clean dist
Note
The gradlew command automatically downloads the correct Gradle version if needed, you do not need to download it first.

This will generate a distribution similar to the zip you can download on the Groovy download page.

To build everything and launch unit tests, use:

gradlew test

If you want to launch one unit test, use this. <TestClassName> is like groovy.GroovyMethodsTest.

gradlew :test --tests <TestClassName>

To build a runnable local installation of Groovy with your changes applied, use:

gradlew :groovy-binary:installGroovy

The installation is generated under subprojects/groovy-binary/build/install. Its bin directory contains the groovy, groovysh, and groovyc launchers, so you can invoke subprojects/groovy-binary/build/install/bin/groovy <script> to run a script against the build you just produced.

To build from IntelliJ IDEA:

gradlew jar idea

Then open the generated project in IDEA.

To build from Eclipse:

gradlew jar eclipse

Then open the generated project and the generated subprojects in Eclipse. But be aware that Eclipse tends to be more limited in its ability to reproduce a Gradle build structure. The generated project files may contain a circular dependency which may or may not prevent Eclipse from using them. It depends on the Eclipse version, if this is an issue or not.

To build the documentation (Groovy Language Documentation):

gradlew asciidoc

All code samples of the documentation guide are pulled from actual test cases. To run a single documentation test case, take for example src/spec/test/semantics/PowerAssertTest.groovy

gradlew testSinglePowerAssertTest
Note
The omission of package name: class is semantics.PowerAssertTest but only PowerAssertTest is added to testSingle.

Verifying dependencies

The build uses Gradle dependency verification, so adding or bumping a dependency requires regenerating gradle/verification-metadata.xml. For the regeneration recipe (including the preferred --dry-run approach), see the Dependency verification section of CONTRIBUTING.md.

Continuous Integration Server

The official CI server runs JetBrains.

Java Profiler

Groovy core team tunes performance through YourKit Java Profiler, which is sponsored by Friends of Groovy Open Collective

As an independent initiative, community members have set up an open collective for Groovy:

License

Groovy is licensed under the terms of the

README
Apache-2.0
使用 Apache-2.0 开源许可协议
取消

发行版

暂无发行版

开源评估指数源自 OSS-Compass 评估体系,评估体系围绕以下三个维度对项目展开评估:

1. 开源生态

  • 生产力:来评估开源项目输出软件制品和开源价值的能力。
  • 创新力:用于评估开源软件及其生态系统的多样化程度。
  • 稳健性:用于评估开源项目面对多变的发展环境,抵御内外干扰并自我恢复的能力。

2. 协作、人、软件

  • 协作:代表了开源开发行为中协作的程度和深度。
  • 人:观察开源项目核心人员在开源项目中的影响力,并通过第三方视角考察用户和开发者对开源项目的评价。
  • 软件:从开源项目对外输出的制品评估其价值最终落脚点。也是开源评估最"古老"的主流方向之一"开源软件" 的具体表现。

3. 评估模型

    基于"开源生态"与"协作、人、软件"的维度,找到与该目标直接或间接相关的可量化指标,对开源项目健康与生态进行量化评估,最终形成开源评估指数。

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/apache/groovy.git
git@gitee.com:apache/groovy.git
apache
groovy
Groovy
master
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /