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
|
||||
key: ${{ runner.os }}-gradle-${{ matrix.java-version }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-${{ matrix.java-version }}-
|
||||
|
||||
- name: Check with Gradle
|
||||
if: matrix.java-version != '24'
|
||||
run: ./gradlew build check --stacktrace
|
||||
${{ runner.os }}-gradle-${{ matrix.java-version }}
|
||||
|
||||
- name: Test with Gradle
|
||||
if: matrix.java-version == '24'
|
||||
run: ./gradlew build test --stacktrace
|
||||
run: ./gradlew build check --stacktrace
|
||||
|
||||
- name: Cleanup Gradle Cache
|
||||
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.TestLogEvent
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
|
@ -59,10 +60,14 @@ tasks {
|
|||
}
|
||||
|
||||
detekt {
|
||||
// toolVersion = "main-SNAPSHOT"
|
||||
toolVersion = "main-SNAPSHOT"
|
||||
baseline = project.rootDir.resolve("detekt-baseline.xml")
|
||||
}
|
||||
|
||||
tasks.withType<Detekt>().configureEach {
|
||||
jvmTarget = "17"
|
||||
}
|
||||
|
||||
gradlePlugin {
|
||||
website.set(github)
|
||||
vcsUrl.set(github)
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
<?xml version="1.0" ?>
|
||||
<SmellBaseline>
|
||||
<ManuallySuppressedIssues></ManuallySuppressedIssues>
|
||||
<ManuallySuppressedIssues/>
|
||||
<CurrentIssues>
|
||||
<ID>MagicNumber:utils.kt$3</ID>
|
||||
<ID>MagicNumber:utils.kt$4</ID>
|
||||
<ID>MagicNumber:utils.kt$5</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 saveProperties(projectDir: File, config: SemverConfig, version: Version)</ID>
|
||||
<ID>MagicNumber:utils.kt:3</ID>
|
||||
<ID>MagicNumber:utils.kt:4</ID>
|
||||
<ID>MagicNumber:utils.kt:5</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 saveProperties(projectDir: File, config: SemverConfig, version: Version)</ID>
|
||||
</CurrentIssues>
|
||||
</SmellBaseline>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue