Unverified Commit 930d449f authored by daz's avatar daz
Browse files

Merge in `gradle-build-action` as `setup-gradle`

This brings the entire codebase and history of `gradle/gradle-build-action` into
the `gradle/actions` repository, after some modifications to make it easier to
merge.

This will permit the new `gradle/actions/setup-gradle` coordinates to carry on
where `gradle/gradle-build-action` leaves off.

- All NPM sources have been moved into a 'sources' directory
- The main action.yml and README are not located at `setup-gradle`
parents daf65faf 2e7b2866
Loading
Loading
Loading
Loading
+21
Changes for .github/actions/build-dist/action.yml: 21 added lines, 0 removed lines.
Original line number Diff line number Diff line
name: 'Build and upload distribution'
# Builds the action distribution an uploads as an artifact for later download
runs:
  using: "composite"
  steps: 
    - uses: actions/setup-node@v4
      with:
        node-version: 20
    - name: Build distribution
      shell: bash
      run: |
        npm -v
        node -v
        npm install
        npm run build
      working-directory: sources
    - name: Upload distribution
      uses: actions/upload-artifact@v4
      with:
        name: dist
        path: dist/
+12
Changes for .github/actions/download-dist/action.yml: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
name: 'Download dist'
# Downloads a 'dist' directory artifact that was uploaded in an earlier step
# We control this with an environment variable to allow for easier global configuration.
runs:
  using: "composite"
  steps: 
    - name: Download dist
      if: ${{ env.DOWNLOAD_DIST == 'true' }}
      uses: actions/download-artifact@v4
      with:
        name: dist
        path: dist/
+3
Changes for .github/dco.yml: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
# Disable sign-off checking for members of the Gradle GitHub organization
require:
  members: false
+71
Changes for .github/dependabot.yml: 71 added lines, 0 removed lines.
Original line number Diff line number Diff line
version: 2
registries:
  gradle-plugin-portal:
    type: maven-repository
    url: https://plugins.gradle.org/m2
    username: dummy # Required by dependabot
    password: dummy # Required by dependabot
updates:
  - package-ecosystem: "github-actions"
    directory: "/"
    schedule:
      interval: "weekly"
    groups:
      github-actions:
        patterns:
        - "*"

  - package-ecosystem: "npm"
    directory: "/"
    schedule:
      interval: "weekly"
    ignore:
      - dependency-name: "@types/node" # Breaking change: update with next major release
      - dependency-name: "@octokit/rest" # Tied to node version
    groups:
      npm-dependencies:
        patterns:
        - "*"
      
  - package-ecosystem: "gradle"
    directory: ".github/workflow-samples/gradle-plugin"
    registries:
      - gradle-plugin-portal
    schedule:
      interval: "daily"
  - package-ecosystem: "gradle"
    directory: ".github/workflow-samples/groovy-dsl"
    registries:
      - gradle-plugin-portal
    schedule:
      interval: "daily"
  - package-ecosystem: "gradle"
    directory: ".github/workflow-samples/java-toolchain"
    registries:
      - gradle-plugin-portal
    schedule:
      interval: "daily"
  - package-ecosystem: "gradle"
    directory: ".github/workflow-samples/kotlin-dsl"
    registries:
      - gradle-plugin-portal
    schedule:
      interval: "daily"
  - package-ecosystem: "gradle"
    directory: ".github/workflow-samples/no-wrapper"
    registries:
      - gradle-plugin-portal
    schedule:
      interval: "daily"
  - package-ecosystem: "gradle"
    directory: ".github/workflow-samples/no-wrapper-gradle-5"
    registries:
      - gradle-plugin-portal
    schedule:
      interval: "daily"
  - package-ecosystem: "gradle"
    directory: "sources/test/init-scripts"
    registries:
      - gradle-plugin-portal
    schedule:
      interval: "daily"
+5
Changes for .github/workflow-samples/.gitignore: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
# Ignore Gradle project-specific cache directory
.gradle

# Ignore Gradle build output directory
build
Loading