diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dd9e72b..7a2a169 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,12 +34,12 @@ jobs: - name: Fetch Sources uses: actions/checkout@v4 - # Setup Java 11 environment for the next steps + # Setup Java environment for the next steps - name: Setup Java uses: actions/setup-java@v4 with: distribution: zulu - java-version: 11 + java-version: 17 cache: gradle # Set environment variables @@ -87,12 +87,12 @@ jobs: - name: Fetch Sources uses: actions/checkout@v4 - # Setup Java 11 environment for the next steps + # Setup Java environment for the next steps - name: Setup Java uses: actions/setup-java@v4 with: distribution: zulu - java-version: 11 + java-version: 17 # Set environment variables - name: Export Properties diff --git a/build.gradle.kts b/build.gradle.kts index 52286f6..ddba389 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -17,6 +17,10 @@ repositories { mavenCentral() } +kotlin { + jvmToolchain(17) +} + dependencies { implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") } @@ -40,13 +44,6 @@ tasks { enabled = false } - withType { - sourceCompatibility = "1.8" - targetCompatibility = "1.8" - } - withType { - kotlinOptions.jvmTarget = "1.8" - } patchPluginXml { version.set(properties("pluginVersion"))