From b699b4db71d08b574cc31daf4ee8c9b849ebaa11 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 14 Aug 2024 00:18:51 +0530 Subject: feat(build): replace homebrew ktfmt formatter with Spotless Spotless has fixed their Gradle Configuration Cache woes in the past couple months which gets rid of my primary complaint. --- .github/renovate.json5 | 12 +++++++++++- .github/workflows/pull_request.yml | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 71995b37..ecbc5a60 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -68,6 +68,16 @@ "datasourceTemplate": "maven", "depNameTemplate": "androidx.compose.compiler:compiler", "registryUrlTemplate": "https://maven.google.com", - } + }, + { + "fileMatch": [ + "build-logic/src/main/kotlin/app/passwordstore/gradle/SpotlessPlugin.kt" + ], + "matchStrings": [ + "KTFMT_VERSION = \"(?.*)\"" + ], + "datasourceTemplate": "maven", + "depNameTemplate": "com.facebook:ktfmt" + } ] } diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index f5879ab7..242065f6 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -20,7 +20,7 @@ jobs: - name: Check codestyle shell: bash - run: ./gradlew ktfmtCheck + run: ./gradlew spotlessCheck - name: Upload Kotlin build report if: "${{ always() }}" -- cgit v1.2.3