• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

palantir/gradle-graal: A plugin for Gradle that adds tasks to download, extract ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

palantir/gradle-graal

开源软件地址(OpenSource Url):

https://github.com/palantir/gradle-graal

开源编程语言(OpenSource Language):

Java 56.1%

开源软件介绍(OpenSource Introduction):

Autorelease

gradle-graal

A simple wrapper around GraalVM tooling that will download and locally cache a GraalVM installation and make available select parts of the GraalVM compiler for use in Gradle builds.

To use this plugin, apply com.palantir.graal. See a full example in the ETE tests.

Gradle Tasks

./gradlew nativeImage: create a native image using GraalVM's native-image tool with the configuration as specified by the graal Gradle extension. Outputs are produced to ${projectDir}/build/graal/.

./gradlew sharedLibary: create a shared library using GraalVM's native-image tool with the configuration as specified by the graal Gradle extension. Outputs are produced to ${projectDir}/build/graal/.

Configuration

Configure this plugin and its wrappers around GraalVM tools through the graal extension with the following options:

General GraalVM controls

  • graalVersion: the version string to use when downloading GraalVM (defaults to 20.2.0)
  • downloadBaseUrl: the base download URL to use (defaults to https://github.com/oracle/graal/releases/download/)
  • javaVersion: the Java version to use (can be either 8 or 11, defaults to 8)
    • for 8: Windows SDK 7.1 will be used (C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd)
    • for 11: Visual Studio Build Tools will be used (C:\Program Files (x86)\Microsoft Visual Studio\{version}\\{edition}\\VC\\Auxiliary\\Build\\vcvars64.bat)
      • windowsVsVersion: the version of Visual Studio to use (can be either 2017 or 2019, by default a search will be performed and the newest will be selected)
      • windowsVsEdition: the edition of Visual Studio to use (can be either Community, Professional or Enterprise, by default a search will be performed and the biggest will be selected)
      • windowsVsVarsPath: path to vcvars64.bat (optional, if it's set it will disable the 2 searches for vsVersion and vsEdition)

native-image controls

Local GraalVM Tooling Cache

We maintain a number of different repositories, and rather than re-download tooling and cache it per repository, this plugin maintains a central cache in the user's home directory (~/.gradle/caches/com.palantir.graal). Tooling artifacts are cached by version, so multiple projects referring to different GraalVM versions will not corrupt the cache.

No locking is performed to check the atomicity of changes to the cache, so users should not expect this plugin to be well behaved when populating the cache from parallel processes.

Contributions

Contributions are welcome. For larger feature requests or contributions, we prefer discussing the proposed change on a GitHub issue prior to a PR.

License

This plugin is made available under the Apache 2.0 License.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap