diff --git a/.github/workflows/codecoverage.yaml b/.github/workflows/codecoverage.yaml index 9155a5a14f5..ecf418bf17f 100644 --- a/.github/workflows/codecoverage.yaml +++ b/.github/workflows/codecoverage.yaml @@ -26,7 +26,7 @@ jobs: distribution: 'temurin' - name: Setup Gradle - uses: gradle/gradle-build-action@b5126f31dbc19dd434c3269bf8c28c315e121da2 # v2 + uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # v2 with: gradle-home-cache-cleanup: true diff --git a/.github/workflows/deploy-snapshot.yaml b/.github/workflows/deploy-snapshot.yaml index 389ca2d4edb..c7359a1fa6f 100644 --- a/.github/workflows/deploy-snapshot.yaml +++ b/.github/workflows/deploy-snapshot.yaml @@ -27,7 +27,7 @@ jobs: distribution: "temurin" - name: Setup Gradle - uses: gradle/gradle-build-action@b5126f31dbc19dd434c3269bf8c28c315e121da2 # v2 + uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # v2 with: gradle-home-cache-cleanup: true diff --git a/.github/workflows/detekt-with-type-resolution.yaml b/.github/workflows/detekt-with-type-resolution.yaml index e75fbe8733c..cbfd41957cc 100644 --- a/.github/workflows/detekt-with-type-resolution.yaml +++ b/.github/workflows/detekt-with-type-resolution.yaml @@ -31,7 +31,7 @@ jobs: distribution: 'temurin' - name: Setup Gradle - uses: gradle/gradle-build-action@b5126f31dbc19dd434c3269bf8c28c315e121da2 # v2 + uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # v2 with: gradle-home-cache-cleanup: true @@ -61,7 +61,7 @@ jobs: distribution: 'temurin' - name: Setup Gradle - uses: gradle/gradle-build-action@b5126f31dbc19dd434c3269bf8c28c315e121da2 # v2 + uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # v2 with: gradle-home-cache-cleanup: true diff --git a/.github/workflows/pre-merge.yaml b/.github/workflows/pre-merge.yaml index d31194b1db9..a23373677b7 100644 --- a/.github/workflows/pre-merge.yaml +++ b/.github/workflows/pre-merge.yaml @@ -38,7 +38,7 @@ jobs: distribution: 'temurin' - name: Setup Gradle - uses: gradle/gradle-build-action@b5126f31dbc19dd434c3269bf8c28c315e121da2 # v2 + uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # v2 with: gradle-home-cache-cleanup: true @@ -67,7 +67,7 @@ jobs: distribution: 'temurin' - name: Setup Gradle - uses: gradle/gradle-build-action@b5126f31dbc19dd434c3269bf8c28c315e121da2 # v2 + uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # v2 with: gradle-home-cache-cleanup: true @@ -87,7 +87,7 @@ jobs: distribution: 'temurin' - name: Setup Gradle - uses: gradle/gradle-build-action@b5126f31dbc19dd434c3269bf8c28c315e121da2 # v2 + uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # v2 with: gradle-home-cache-cleanup: true @@ -107,7 +107,7 @@ jobs: distribution: 'temurin' - name: Setup Gradle - uses: gradle/gradle-build-action@b5126f31dbc19dd434c3269bf8c28c315e121da2 # v2 + uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # v2 with: gradle-home-cache-cleanup: true diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index 4efe0b18a63..c58e74ca9e7 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -27,7 +27,7 @@ jobs: distribution: 'temurin' - name: Setup Gradle - uses: gradle/gradle-build-action@b5126f31dbc19dd434c3269bf8c28c315e121da2 # v2 + uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # v2 with: gradle-home-cache-cleanup: true diff --git a/detekt-gradle-plugin/src/main/kotlin/io/gitlab/arturbosch/detekt/extensions/DetektExtension.kt b/detekt-gradle-plugin/src/main/kotlin/io/gitlab/arturbosch/detekt/extensions/DetektExtension.kt index 89021b4e100..388a878acc7 100644 --- a/detekt-gradle-plugin/src/main/kotlin/io/gitlab/arturbosch/detekt/extensions/DetektExtension.kt +++ b/detekt-gradle-plugin/src/main/kotlin/io/gitlab/arturbosch/detekt/extensions/DetektExtension.kt @@ -65,7 +65,7 @@ internal fun loadDetektVersion(classLoader: ClassLoader): String { .toList() .mapNotNull { versions -> Properties().run { - load(versions.openSafeStream()) + versions.openSafeStream().use(::load) getProperty("detektVersion") } } diff --git a/settings.gradle.kts b/settings.gradle.kts index 51e11c47d37..475ce633c92 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -46,7 +46,7 @@ enableFeaturePreview("STABLE_CONFIGURATION_CACHE") // build scan plugin can only be applied in settings file plugins { id("com.gradle.enterprise") version "3.13.4" - id("com.gradle.common-custom-user-data-gradle-plugin") version "1.11.2" + id("com.gradle.common-custom-user-data-gradle-plugin") version "1.11.3" } val isCiBuild = providers.environmentVariable("CI").isPresent diff --git a/website/versioned_docs/version-1.23.1/gettingstarted/compilerplugin.mdx b/website/versioned_docs/version-1.23.1/gettingstarted/compilerplugin.mdx index 1e6f1ecda90..ff681283d76 100644 --- a/website/versioned_docs/version-1.23.1/gettingstarted/compilerplugin.mdx +++ b/website/versioned_docs/version-1.23.1/gettingstarted/compilerplugin.mdx @@ -28,7 +28,7 @@ plugins { ## Configuring the Compiler Plugin -The compiler plugin can be configured using the `react{}` block in your gradle file. +The compiler plugin can be configured using the `detekt{}` block in your gradle file. The following options are allowed: