From 8a8162efdb4217aa5f3be36caa20341509cae398 Mon Sep 17 00:00:00 2001 From: Philip Schlesinger Date: Wed, 7 Dec 2022 13:37:52 -0800 Subject: [PATCH 1/4] Updated some key details. So far so good, it compiles w/o error --- .idea/misc.xml | 3 +++ .idea/runConfigurations.xml | 10 ---------- build.gradle.kts | 9 +++++---- 3 files changed, 8 insertions(+), 14 deletions(-) delete mode 100644 .idea/runConfigurations.xml 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/build.gradle.kts b/build.gradle.kts index d477a04..3b7d5db 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() @@ -54,7 +54,8 @@ tasks.getByName("runPluginVe "2022.2", "2022.2.1", "2022.2.2", - "2022.2.3" + "2022.2.3", + "2022.3" )) verifierVersion.set("1.284") } From bfdfdc7b5b16f31bc3d1923446a52cb7fd8c3d97 Mon Sep 17 00:00:00 2001 From: Philip Schlesinger Date: Wed, 7 Dec 2022 13:38:48 -0800 Subject: [PATCH 2/4] Rolled verifierVersion --- build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 3b7d5db..631d86e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -57,7 +57,7 @@ tasks.getByName("runPluginVe "2022.2.3", "2022.3" )) - verifierVersion.set("1.284") + verifierVersion.set("1.289") } tasks { From bf4bd429983bcf232093dfe820e2755e88ab381f Mon Sep 17 00:00:00 2001 From: Philip Schlesinger Date: Thu, 8 Dec 2022 10:19:08 -0800 Subject: [PATCH 3/4] buildPlugin and runPluginVerifier success --- .sdkmanrc | 3 +++ README.md | 15 ++++++++++----- build.gradle.kts | 11 ++++++----- 3 files changed, 19 insertions(+), 10 deletions(-) create mode 100644 .sdkmanrc 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 631d86e..1b0be11 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -13,10 +13,10 @@ 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/ @@ -28,7 +28,8 @@ tasks.getByName("patchPluginXml sinceBuild.set("211") untilBuild.set("222.*") changeNotes.set(""" -

Fix preview on Windows

+

Update to support IntelliJ IDEA 2022.3

+

Update dependency & build toolchain versions

""".trimIndent()) } From fb3869fc851df4aeec24f2f7518707420e5b9d54 Mon Sep 17 00:00:00 2001 From: Philip Schlesinger Date: Thu, 8 Dec 2022 10:41:47 -0800 Subject: [PATCH 4/4] Forgot to change back to Java 17 and IDEA 2022.3 --- build.gradle.kts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 1b0be11..f9ffe20 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -21,12 +21,12 @@ dependencies { // 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("""

Update to support IntelliJ IDEA 2022.3

Update dependency & build toolchain versions

@@ -63,10 +63,10 @@ tasks.getByName("runPluginVe tasks { compileKotlin { - kotlinOptions.jvmTarget = "11" + kotlinOptions.jvmTarget = "17" } compileTestKotlin { - kotlinOptions.jvmTarget = "11" + kotlinOptions.jvmTarget = "17" } test { useJUnitPlatform()