Skip to content

Commit

Permalink
Use Java 21 and bump min IDEA requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Aug 7, 2024
1 parent a6fca73 commit 6da6766
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
java-version: 21

- uses: gradle/actions/setup-gradle@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
java-version: 21

- uses: gradle/actions/setup-gradle@v4

Expand Down
31 changes: 12 additions & 19 deletions idea-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ composeCompiler {
intellijPlatform {
buildSearchableOptions = false
pluginConfiguration.ideaVersion {
sinceBuild = "241"
sinceBuild = "242"
untilBuild = "242.*"
}
signing {
Expand All @@ -78,25 +78,18 @@ intellijPlatform {
publishing.token = providers.environmentVariable("PUBLISH_TOKEN")
}

java {
// IDEA 2024.2 or above requires Java 21.
toolchain.languageVersion = JavaLanguageVersion.of(21)
}

tasks {
run {
// workaround for https://youtrack.jetbrains.com/issue/IDEA-285839/Classpath-clash-when-using-coroutines-in-an-unbundled-IntelliJ-plugin
buildPlugin {
exclude { "coroutines" in it.name }
archiveFileName = "${rootProject.name}-$version.zip"
}
prepareSandbox {
exclude { "coroutines" in it.name }
}
// workaround for https://youtrack.jetbrains.com/issue/IDEA-285839/Classpath-clash-when-using-coroutines-in-an-unbundled-IntelliJ-plugin
buildPlugin {
exclude { "coroutines" in it.name }
archiveFileName = "${rootProject.name}-$version.zip"
}
withType<JavaCompile> {
sourceCompatibility = "17"
targetCompatibility = "17"
}

withType<KotlinCompile> {
compilerOptions {
jvmTarget = JvmTarget.JVM_17
}
prepareSandbox {
exclude { "coroutines" in it.name }
}
}

0 comments on commit 6da6766

Please sign in to comment.