Update dependency io.github.gradle-nexus:publish-plugin to v2 (#131) #81
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Dependencies' | |
on: | |
push: | |
branches: | |
- 'main' | |
env: | |
GRADLE_OPTS: -Dorg.gradle.daemon=true -Dorg.gradle.parallel=true -Dorg.gradle.welcome=never | |
jobs: | |
dependencies: | |
name: 'Dependencies' | |
runs-on: ubuntu-latest | |
# The Dependency Submission API requires write permission. | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# Fetch Git tags, so that semantic version can be calculated. | |
# Alternatively, run `git fetch --prune --unshallow --tags` as the | |
# next step, see | |
# https://github.com/actions/checkout/issues/206#issuecomment-607496604. | |
fetch-depth: 0 | |
- name: 'Set up Java 17' | |
uses: actions/setup-java@v4 | |
with: | |
distribution: zulu | |
java-version: 17 | |
java-package: jdk+fx | |
- name: 'Cache ~/.konan' | |
id: cache-konan | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.konan | |
key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle.kts', '**/gradle-wrapper.properties') }}-dependencies | |
restore-keys: | | |
${{ runner.os }}-konan-${{ hashFiles('**/*.gradle.kts', '**/gradle-wrapper.properties') }}- | |
${{ runner.os }}-konan- | |
- name: 'Set up Gradle' | |
id: build | |
uses: gradle/gradle-build-action@v3 | |
with: | |
gradle-version: wrapper | |
- name: 'Run snapshot action' | |
uses: mikepenz/gradle-dependency-submission@v1.0.0 | |
with: | |
use-gradlew: true | |
gradle-build-module: |- | |
:fixpatches | |
# `compileClasspath` configuration has no dependencies in multiplatform | |
# projects. | |
gradle-build-configuration: |- | |
jvmCompileClasspath |