Set Detekt JVM target to 17
This commit is contained in:
parent
db489cc19f
commit
20f816940b
3 changed files with 15 additions and 15 deletions
9
.github/workflows/gradle.yml
vendored
9
.github/workflows/gradle.yml
vendored
|
@ -35,15 +35,10 @@ jobs:
|
||||||
~/.gradle/wrapper
|
~/.gradle/wrapper
|
||||||
key: ${{ runner.os }}-gradle-${{ matrix.java-version }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
key: ${{ runner.os }}-gradle-${{ matrix.java-version }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gradle-${{ matrix.java-version }}-
|
${{ runner.os }}-gradle-${{ matrix.java-version }}
|
||||||
|
|
||||||
- name: Check with Gradle
|
|
||||||
if: matrix.java-version != '24'
|
|
||||||
run: ./gradlew build check --stacktrace
|
|
||||||
|
|
||||||
- name: Test with Gradle
|
- name: Test with Gradle
|
||||||
if: matrix.java-version == '24'
|
run: ./gradlew build check --stacktrace
|
||||||
run: ./gradlew build test --stacktrace
|
|
||||||
|
|
||||||
- name: Cleanup Gradle Cache
|
- name: Cleanup Gradle Cache
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import io.gitlab.arturbosch.detekt.Detekt
|
||||||
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
|
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
|
||||||
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
||||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||||
|
@ -59,10 +60,14 @@ tasks {
|
||||||
}
|
}
|
||||||
|
|
||||||
detekt {
|
detekt {
|
||||||
// toolVersion = "main-SNAPSHOT"
|
toolVersion = "main-SNAPSHOT"
|
||||||
baseline = project.rootDir.resolve("detekt-baseline.xml")
|
baseline = project.rootDir.resolve("detekt-baseline.xml")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType<Detekt>().configureEach {
|
||||||
|
jvmTarget = "17"
|
||||||
|
}
|
||||||
|
|
||||||
gradlePlugin {
|
gradlePlugin {
|
||||||
website.set(github)
|
website.set(github)
|
||||||
vcsUrl.set(github)
|
vcsUrl.set(github)
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
<?xml version="1.0" ?>
|
<?xml version="1.0" ?>
|
||||||
<SmellBaseline>
|
<SmellBaseline>
|
||||||
<ManuallySuppressedIssues></ManuallySuppressedIssues>
|
<ManuallySuppressedIssues/>
|
||||||
<CurrentIssues>
|
<CurrentIssues>
|
||||||
<ID>MagicNumber:utils.kt$3</ID>
|
<ID>MagicNumber:utils.kt:3</ID>
|
||||||
<ID>MagicNumber:utils.kt$4</ID>
|
<ID>MagicNumber:utils.kt:4</ID>
|
||||||
<ID>MagicNumber:utils.kt$5</ID>
|
<ID>MagicNumber:utils.kt:5</ID>
|
||||||
<ID>NestedBlockDepth:utils.kt$fun File.loadProperties(): Properties</ID>
|
<ID>NestedBlockDepth:utils.kt:fun File.loadProperties(): Properties</ID>
|
||||||
<ID>NestedBlockDepth:utils.kt$fun parseSemVer(input: String?, version: Version): Boolean</ID>
|
<ID>NestedBlockDepth:utils.kt:fun parseSemVer(input: String?, version: Version): Boolean</ID>
|
||||||
<ID>NestedBlockDepth:utils.kt$fun saveProperties(projectDir: File, config: SemverConfig, version: Version)</ID>
|
<ID>NestedBlockDepth:utils.kt:fun saveProperties(projectDir: File, config: SemverConfig, version: Version)</ID>
|
||||||
</CurrentIssues>
|
</CurrentIssues>
|
||||||
</SmellBaseline>
|
</SmellBaseline>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue