Skip to content

Bump com.gradle.develocity from 3.18.2 to 3.19 #1438

Bump com.gradle.develocity from 3.18.2 to 3.19

Bump com.gradle.develocity from 3.18.2 to 3.19 #1438

Workflow file for this run

name: build
on:
push:
branches:
- master
pull_request:
types: [ opened, labeled, unlabeled, synchronize ]
env:
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false"
JAVA_VERSION: 17
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
steps:
- name: Checkout Project
uses: actions/[email protected]
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Configure JDK ${{ env.JAVA_VERSION }}
uses: actions/[email protected]
with:
distribution: temurin
java-version: ${{ env.JAVA_VERSION }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-home-cache-cleanup: true
- run: ./gradlew --version
- name: Run Ktlint Check On All Sources
run: ./gradlew ktlintCheck -s
- name: Run Build and Unit Tests
run: ./gradlew build -s
- name: Publish Test Report
uses: EnricoMi/[email protected]
if: always()
with:
comment_mode: off
action_fail_on_inconclusive: true
files: '**/build/test-results/test/TEST-*.xml'
- name: Upload Artifacts
uses: actions/[email protected]
if: github.repository == 'jaredsburrows/gradle-license-plugin' && github.ref == 'refs/heads/master'
with:
name: gradle-license-plugin-${{ github.workflow }}-${{ github.run_id }}
path: |
build/libs
build/outputs
build/publications
build/distributions
build/reports
build/test-results
publish:
name: Publish Snapshot
runs-on: ubuntu-latest
if: github.repository == 'jaredsburrows/gradle-license-plugin' && github.ref == 'refs/heads/master'
needs:
- build
steps:
- name: Checkout Project
uses: actions/[email protected]
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Configure JDK ${{ env.JAVA_VERSION }}
uses: actions/[email protected]
with:
distribution: temurin
java-version: ${{ env.JAVA_VERSION }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-home-cache-cleanup: true
- run: ./gradlew --version
- name: Publish
run: ./gradlew publish -s -i
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
- name: Generate Docs
run: ./gradlew dokkaHtml
- name: Publish Website
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: gradle-license-plugin/build/dokka/html
user_name: "Github Actions"
user_email: "[email protected]"