Skip to content

Commit

Permalink
First draft of action
Browse files Browse the repository at this point in the history
  • Loading branch information
bigdaz committed Jan 13, 2024
1 parent 5516b39 commit 960e7a8
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
4 changes: 3 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ description: 'Configures Gradle for GitHub actions, caching state and generating

inputs:
gradle-version:
description: Gradle version to use. If specified, this Gradle version will be downloaded, added to the PATH and used for invoking Gradle.
description: |
Gradle version to use. If specified, this Gradle version will be downloaded, added to the PATH and used for invoking Gradle.
If not provided, it is assumed that the project uses the Gradle Wrapper.
required: false

cache-disabled:
Expand Down
34 changes: 34 additions & 0 deletions actions/dependency-submission/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 'Gradle Dependency Submission'
description: 'Generates a dependency graph for the project and submits it via the Dependency Submission API'

inputs:
gradle-version:
description: |
Gradle version to use. If specified, this Gradle version will be downloaded, added to the PATH and used for invoking Gradle.
If not provided, it is assumed that the project uses the Gradle Wrapper.
required: false
build-root-directory:
description: Path to the root directory of the build. Default is the root of the GitHub workspace.
required: false
cache-encryption-key:
description: |
A base64 encoded AES key used to encrypt the configuration-cache data. The key is exported as 'GRADLE_ENCRYPTION_KEY' for later steps.
A suitable key can be generated with `openssl rand -base64 16`.
Configuration-cache data will not be saved/restored without an encryption key being provided.
required: false

runs:
using: "composite"
steps:
- uses: ../../
with:
dependency-graph: generate-and-submit
dependency-graph-continue-on-failure: false
gradle-version: ${{ inputs.gradle-version }}
build-root-directory: ${{ inputs.build-root-directory }}
cache-encryption-key: ${{ inputs.cache-encryption-key }}
arguments: |
--no-configure-on-demand
--dependency-verification=off
--stacktrace
:ForceDependencyResolutionPlugin_resolveAllDependencies

0 comments on commit 960e7a8

Please sign in to comment.