Skip to content

Commit

Permalink
Bump minimum supported Gradle version to 6.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
3flex committed Jul 18, 2022
1 parent 4015679 commit 324f050
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -106,7 +106,7 @@ If you want to use a SNAPSHOT version, you can find more info on [this documenta

#### Requirements

Gradle 6.1+ is the minimum requirement. However, the recommended versions together with the other tools recommended versions are:
Gradle 6.7.1+ is the minimum requirement. However, the recommended versions together with the other tools recommended versions are:

| Detekt Version | Gradle | Kotlin | AGP | Java Target Level | JDK Max Version |
| -------------- | ------- | -------- | ------- | ----------------- | --------------- |
Expand Down
Expand Up @@ -6,13 +6,13 @@ import org.gradle.testkit.runner.TaskOutcome
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.condition.EnabledForJreRange
import org.junit.jupiter.api.condition.JRE.JAVA_13
import org.junit.jupiter.api.condition.JRE.JAVA_15

class GradleVersionSpec {

@Test
@DisplayName("Runs on version $gradleVersion")
@EnabledForJreRange(max = JAVA_13, disabledReason = "Gradle $gradleVersion unsupported on this Java version")
@EnabledForJreRange(max = JAVA_15, disabledReason = "Gradle $gradleVersion unsupported on this Java version")
fun runsOnOldestSupportedGradleVersion() {
val builder = DslTestBuilder.kotlin()
val gradleRunner = builder.withGradleVersion(gradleVersion).build()
Expand All @@ -22,6 +22,6 @@ class GradleVersionSpec {
}

companion object {
const val gradleVersion = "6.1"
const val gradleVersion = "6.7.1"
}
}
2 changes: 1 addition & 1 deletion website/docs/gettingstarted/gradle.mdx
Expand Up @@ -8,7 +8,7 @@ summary:
sidebar_position: 2
---

Detekt requires **Gradle 6.1** or higher. We, however, recommend using the version of Gradle that is [listed in this table](/docs/introduction/compatibility).
Detekt requires **Gradle 6.7.1** or higher. We, however, recommend using the version of Gradle that is [listed in this table](/docs/introduction/compatibility).

## <a name="tasks">Available plugin tasks</a>

Expand Down

0 comments on commit 324f050

Please sign in to comment.