Esta página aún no está disponible en su idioma local. Estamos trabajando arduamente para agregar más versiones de idiomas. Gracias por tu apoyo.

On this page

Show all

Using YAML to Configure a Gradle Build

Updated on 2023-12-06 GMT+08:00
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
version: 2.0 # The value must be 2.0.
steps:
  BUILD:
    - gradle:
        inputs:
            gradle: 4.8
            jdk: 1.8
            command: |
                # Gradle Wrapper provided by CodeArts and cache are used for acceleration.
                cp /cache/android/wrapper/gradle-wrapper.jar ./gradle/wrapper/gradle-wrapper.jar
                # Build an unsigned APK.
                /bin/bash ./gradlew build --init-script  ./.codeci/.gradle/init_template.gradle -Dorg.gradle.daemon=false -Dorg.gradle.internal.http.connectionTimeout=800000

Parameter

Type

Description

Mandatory

Default Value

command

string

Execute commands.

Yes

None

gradle

string

Gradle version.

Yes

None

jdk

string

JDK version.

Yes

None

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback