Skip to content

GROOVY-12232: Wrap AIC cast arguments only when the generated constru… #6405

GROOVY-12232: Wrap AIC cast arguments only when the generated constru…

GROOVY-12232: Wrap AIC cast arguments only when the generated constru… #6405

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Check licenses
on:
push:
branches:
- master
- GROOVY_*
pull_request:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
steps:
- uses: actions/checkout@v7.0.1
- uses: actions/setup-java@v5.7.0
with:
distribution: 'zulu'
java-version: 21
check-latest: true
# Restore-only (never saves): this job resolves just the plugin
# classpath + rat deps — a small subset of the `build` lineage. If it
# saved, it could win the save race for a new key and pin a thin cache
# that groovy-build-test.yml could then not overwrite until the next
# key rotation. See groovy-build-test.yml (lts job) for the full
# caching rationale.
- name: "🗄 Restore Gradle dependencies (~/.gradle/caches/modules-2 + wrapper)"
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
~/.gradle/caches/modules-2
~/.gradle/wrapper
key: gradle-deps-${{ runner.os }}-build-${{ github.base_ref || github.ref_name }}-${{ hashFiles('versions.properties', 'gradle/wrapper/gradle-wrapper.properties', 'settings.gradle', 'build-logic/build.gradle') }}
restore-keys: |
gradle-deps-${{ runner.os }}-build-${{ github.base_ref || github.ref_name }}-
- uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0
# The action's own caching is disabled: dependency jars and wrapper
# dists are cached by the explicit branch-keyed step above instead.
with:
cache-disabled: true
- name: Check licenses with rat
run: ./gradlew rat
timeout-minutes: 60