diff --git a/.gitignore b/.gitignore index 467124b..822703c 100644 --- a/.gitignore +++ b/.gitignore @@ -126,4 +126,6 @@ gradle-app.setting # End of https://www.toptal.com/developers/gitignore/api/gradle,intellij -.DS_Store \ No newline at end of file +.DS_Store +.intellijPlatform +.kotlin \ No newline at end of file diff --git a/.idea/icon.svg b/.idea/icon.svg new file mode 100755 index 0000000..9eea85b --- /dev/null +++ b/.idea/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/.idea/kotlinScripting.xml b/.idea/kotlinScripting.xml deleted file mode 100644 index e56386c..0000000 --- a/.idea/kotlinScripting.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - 2147483647 - true - - - \ No newline at end of file diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml index 46c6ce0..d4b7acc 100644 --- a/.idea/kotlinc.xml +++ b/.idea/kotlinc.xml @@ -1,6 +1,6 @@ - - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 5180e99..653f88b 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -4,10 +4,10 @@ - + - + \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index aacc14c..93ba97c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 2.6.0+jre21 +published to: +- [JetBrains marketplace](https://plugins.jetbrains.com/plugin/15673-asyncapi/edit/versions/stable/596939) +- [GitHub](https://github.com/asyncapi/jasyncapi-idea-plugin/releases/new?tag=2.6.0%2Bjre17) + +### Added + +- IDEA 2024.2 +- Yaml single quoted references handling - '#/components/messages/welcomeMessage' +- `.yml` file recognition + ## 2.5.0+jre17 published to: - [JetBrains marketplace](https://plugins.jetbrains.com/plugin/15673-asyncapi/versions/stable/520779) diff --git a/README.md b/README.md index fe13796..72a71db 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ cd jasyncapi-idea-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 +./gradlew :verifyPlugin ``` ... should have no errors 5. install plugin from disk - [JetBrains Instruction](https://www.jetbrains.com/help/idea/managing-plugins.html#install_plugin_from_disk) diff --git a/build.gradle.kts b/build.gradle.kts index dda408d..0fbfb97 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,17 +1,45 @@ +import org.jetbrains.intellij.platform.gradle.TestFrameworkType +import org.jetbrains.intellij.platform.gradle.tasks.VerifyPluginTask + plugins { - id("org.jetbrains.intellij") version "1.17.4" + id("org.jetbrains.intellij.platform") version "2.0.1" java kotlin("jvm") version "2.0.20" } group = "com.asyncapi.plugin.idea" -version = "2.5.0+jre17" +version = "2.6.0+jre17" repositories { mavenCentral() + intellijPlatform { + jetbrainsRuntime() + defaultRepositories() + } } dependencies { + intellijPlatform { + /* + Our developers believe that you likely built the plugin against version 2024.2, which includes + a companion object in this class. As a result, the generated bytecode references it. To ensure compatibility, + the plugin should be built against the lowest supported version, which in this case is 2022.3. + + Please adjust the IntelliJ version to 2022.3 in the Gradle build script and try building the plugin again. + */ + intellijIdeaCommunity("2022.3", useInstaller = false) // MUST NOT be changed + + // Plugin Dependencies. Uses `platformBundledPlugins` property from the gradle.properties file for bundled IntelliJ Platform plugins. + bundledPlugins(listOf( + "org.jetbrains.plugins.yaml" + )) + + pluginVerifier() + jetbrainsRuntime() + instrumentationTools() + testFramework(TestFrameworkType.Platform) + } + implementation("com.fasterxml.jackson.core:jackson-core:2.17.2") implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.17.2") implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.17.2") @@ -21,110 +49,79 @@ dependencies { testRuntimeOnly("org.junit.vintage:junit-vintage-engine:5.11.0") } -// See https://github.com/JetBrains/gradle-intellij-plugin/ -intellij { - version.set("2024.1") - plugins.set(listOf("yaml")) -} -tasks.getByName("patchPluginXml") { - sinceBuild.set("223") - untilBuild.set("241.*") - changeNotes.set(""" -

Added

- -

Fixed

- -

Changed

-