kafka

Форк
0
59 строк · 2.2 Кб
1
# Licensed to the Apache Software Foundation (ASF) under one
2
# or more contributor license agreements.  See the NOTICE file
3
# distributed with this work for additional information
4
# regarding copyright ownership.  The ASF licenses this file
5
# to you under the Apache License, Version 2.0 (the
6
# "License"); you may not use this file except in compliance
7
# with the License.  You may obtain a copy of the License at
8
#
9
#   http://www.apache.org/licenses/LICENSE-2.0
10
#
11
# Unless required by applicable law or agreed to in writing,
12
# software distributed under the License is distributed on an
13
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
# KIND, either express or implied.  See the License for the
15
# specific language governing permissions and limitations
16
# under the License.
17
#
18
---
19
name: "Gradle Setup"
20
description: "Setup Java and Gradle"
21
inputs:
22
  # Composite actions do not support typed parameters. Everything is treated as a string
23
  # See: https://github.com/actions/runner/issues/2238
24
  java-version:
25
    description: "Java version to use"
26
    default: "17"
27
  gradle-cache-read-only:
28
    description: "Should the Gradle cache be read-only?"
29
    default: "true"
30
  gradle-cache-write-only:
31
    description: "Should the Gradle cache be write-only?"
32
    default: "false"
33
  develocity-access-key:
34
    description: "Optional access key for uploading build scans to Develocity"
35
    default: ""
36
runs:
37
  using: "composite"
38
  steps:
39
    - name: Setup Java
40
      uses: actions/setup-java@v4
41
      with:
42
        distribution: temurin
43
        java-version: ${{ inputs.java-version }}
44
    - name: Setup Gradle
45
      uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0
46
      env:
47
        GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED: true
48
      with:
49
        gradle-version: wrapper
50
        develocity-access-key: ${{ inputs.develocity-access-key }}
51
        develocity-token-expiry: 4
52
        cache-read-only: ${{ inputs.gradle-cache-read-only }}
53
        cache-write-only: ${{ inputs.gradle-cache-write-only }}
54
        # Cache downloaded JDKs in addition to the default directories.
55
        gradle-home-cache-includes: |
56
          caches
57
          notifications
58
          jdks
59
        cache-cleanup: on-success
60

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.