gradle - 如何使用 buildspec.yml 运行 gradle 构建
问题描述
有没有办法使用 buildspec.yml 文件运行 gradle 构建。buildspec.yml 文件包含一个 gradle 构建命令列表。
解决方案
是的,它可能,PFB buildspec.yml
version: 0.1
phases:
install:
commands:
- echo Entering install phase...
- echo Nothing to do now
build:
commands:
- echo Build started on `date`
- gradle build
artifacts:
type: zip
files:
- 'build/libs/*.jar'
供参考:https ://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html
推荐阅读
- tensorflow - 张量流中是否有对数空间功能?
- node.js - 有没有办法在对话流或动态列表响应中显示动态建议芯片?
- python - Python Returning An Empty List Using Beautiful Soup HTML Parsing
- swift - 当用户在导航控制器中滚动时,是否可以维护大标题
- python - 使用 FastAPI 支持表单和 json 编码的正文
- vba - 在工作表 3 中复制范围 A:AM 而不是整行并粘贴到工作表 1 (A1) 中的一个下方
- azure-devops - 有没有办法增加 DevOps 中板的项目限制?
- apache-spark - Spark 读取功能无法识别分隔符“\u0001”
- php - 我可以在今天的 X 天内进行 WP 查询吗
- jquery - 使用jQuery检测浏览器