如何使用 buildspec.yml 运行 gradle 构建

itg*_*eek 5 yaml build gradle

有什么方法可以使用 buildspec.yml 文件运行 gradle 构建。buildspec.yml 文件包含一个 gradle 构建命令列表。

Ank*_*sss 8

是的,它可能,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'
Run Code Online (Sandbox Code Playgroud)

供参考:https : //docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html