Set Detekt JVM target to 23 under JDK 24
This commit is contained in:
parent
db489cc19f
commit
db0c3c856e
4 changed files with 20 additions and 18 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,16 @@ tasks {
|
|||
}
|
||||
|
||||
detekt {
|
||||
// toolVersion = "main-SNAPSHOT"
|
||||
toolVersion = "main-SNAPSHOT"
|
||||
baseline = project.rootDir.resolve("detekt-baseline.xml")
|
||||
}
|
||||
|
||||
tasks.withType<Detekt>().configureEach {
|
||||
if (JavaVersion.current() >= JavaVersion.VERSION_24) {
|
||||
jvmTarget = "23"
|
||||
}
|
||||
}
|
||||
|
||||
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>
|
||||
|
|
|
@ -14,16 +14,16 @@ import java.util.Date;
|
|||
*/
|
||||
public final class GeneratedVersion {
|
||||
public static final String PROJECT = "Java Example";
|
||||
public static final Date BUILDDATE = new Date(1707709694421L);
|
||||
public static final Date BUILDDATE = new Date(1745642618838L);
|
||||
public static final int MAJOR = 2;
|
||||
public static final int MINOR = 12;
|
||||
public static final int MINOR = 13;
|
||||
public static final int PATCH = 0;
|
||||
public static final String PRERELEASE = "";
|
||||
public static final String PRERELEASE_PREFIX = "-";
|
||||
public static final String BUILDMETA = "";
|
||||
public static final String BUILDMETA_PREFIX = "+";
|
||||
public static final String SEPARATOR = ".";
|
||||
public static final String VERSION = "2.12.0";
|
||||
public static final String VERSION = "2.13.0";
|
||||
|
||||
/**
|
||||
* Disables the default constructor.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue