diff --git a/.idea/misc.xml b/.idea/misc.xml index 5d98256..b6acdbd 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -7,4 +7,7 @@ + + \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml deleted file mode 100644 index 797acea..0000000 --- a/.idea/runConfigurations.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.sdkmanrc b/.sdkmanrc new file mode 100644 index 0000000..489632b --- /dev/null +++ b/.sdkmanrc @@ -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 diff --git a/README.md b/README.md index c4d2093..1050ed1 100644 --- a/README.md +++ b/README.md @@ -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) \ No newline at end of file +... 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) \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index d477a04..f9ffe20 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,11 +1,11 @@ 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() @@ -13,22 +13,23 @@ repositories { 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("patchPluginXml") { sinceBuild.set("211") - untilBuild.set("222.*") + untilBuild.set("223.*") changeNotes.set(""" -

Fix preview on Windows

+

Update to support IntelliJ IDEA 2022.3

+

Update dependency & build toolchain versions

""".trimIndent()) } @@ -54,17 +55,18 @@ tasks.getByName("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()