Skip to content

Commit

Permalink
feat: support IntelliJ IDEA 2022.3; roll versions (#8)
Browse files Browse the repository at this point in the history
- Support IntelliJ IDEA 2022.3
- Roll dependency / toolchain versions
- Update README to state that must `:runPluginVerifier`
  • Loading branch information
philCryoport authored Jan 24, 2023
1 parent 15496ee commit ed357bc
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 29 deletions.
3 changes: 3 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions .idea/runConfigurations.xml

This file was deleted.

3 changes: 3 additions & 0 deletions .sdkmanrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Enable auto-env through the sdkman_auto_env config
# Add key=value pairs of SDKs to use below
java=17.0.5-tem
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,14 @@ cd jasyncapi-idea-plugin
```
3. build plugin
```sh
➜ jasyncapi-idea-plugin git:(feature/idea-plugin) ✗ ./gradlew buildPlugin
...
BUILD SUCCESSFUL in 24s
11 actionable tasks: 11 executed
./gradlew :buildPlugin
```
4. install plugin from disk - [JetBrains Instruction](https://www.jetbrains.com/help/idea/managing-plugins.html#install_plugin_from_disk)
... should have no errors
4. verify plugin

NOTE: This will take a while the first time as it will have to download every single version of IntelliJ IDEA listed in the `runPluginVerifier` section of the `build.gradle.kts` file.
```sh
./gradlew :runPluginVerifier
```
... should have no errors
5. install plugin from disk - [JetBrains Instruction](https://www.jetbrains.com/help/idea/managing-plugins.html#install_plugin_from_disk)
30 changes: 16 additions & 14 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
plugins {
id("org.jetbrains.intellij") version "1.9.0"
id("org.jetbrains.intellij") version "1.10.0"
java
kotlin("jvm") version "1.6.20"
kotlin("jvm") version "1.7.21"
}

group "com.asyncapi.plugin.idea"
version = "1.7.1+idea2021"
version = "1.8.0+idea2022"

repositories {
mavenCentral()
}

dependencies {
implementation(kotlin("stdlib"))
testImplementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.0")
testRuntimeOnly("org.junit.vintage:junit-vintage-engine:5.9.0")
testImplementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.1")
testRuntimeOnly("org.junit.vintage:junit-vintage-engine:5.9.1")
}

// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
version.set("2022.2.3")
version.set("2022.3")
plugins.set(listOf("yaml"))
}
tasks.getByName<org.jetbrains.intellij.tasks.PatchPluginXmlTask>("patchPluginXml") {
sinceBuild.set("211")
untilBuild.set("222.*")
untilBuild.set("223.*")
changeNotes.set("""
<p>Fix preview on Windows</p>
<p>Update to support IntelliJ IDEA 2022.3</p>
<p>Update dependency & build toolchain versions</p>
""".trimIndent())
}

Expand All @@ -54,17 +55,18 @@ tasks.getByName<org.jetbrains.intellij.tasks.RunPluginVerifierTask>("runPluginVe
"2022.2",
"2022.2.1",
"2022.2.2",
"2022.2.3"
"2022.2.3",
"2022.3"
))
verifierVersion.set("1.284")
verifierVersion.set("1.289")
}

tasks {
compileKotlin {
kotlinOptions.jvmTarget = "11"
kotlinOptions.jvmTarget = "17"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "11"
kotlinOptions.jvmTarget = "17"
}
test {
useJUnitPlatform()
Expand Down

0 comments on commit ed357bc

Please sign in to comment.