Skip to content

Commit

Permalink
build(plugin.xml): migrate patchPluginXml
Browse files Browse the repository at this point in the history
  • Loading branch information
Pakisan committed Aug 27, 2024
1 parent bd718cd commit 53de3bc
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 52 deletions.
56 changes: 20 additions & 36 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,43 +43,27 @@ dependencies {
// See https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-extension.html
intellijPlatform {
instrumentCode = true

pluginConfiguration {
description = providers.fileContents(
layout.projectDirectory.file("src/main/resources/META-INF/description.html")
).asText

changeNotes = """
<h3>Added</h3>
<ul>
<li>IDEA 2024.2</li>
</ul>
""".trimIndent()
}
}

tasks {
patchPluginXml {
sinceBuild = "223"
untilBuild = "242.*"
}
}
//tasks.getByName<org.jetbrains.intellij.tasks.PatchPluginXmlTask>("patchPluginXml") {
// sinceBuild.set("223")
// untilBuild.set("242.*")
// changeNotes.set("""
// <h3>Added</h3>
// <ul>
// <li>IDEA 2024.2</li>
// </ul>
// <h3>Fixed</h3>
// <ul>
// <li>No fixes this release version</li>
// </ul>
// <h3>Changed</h3>
// <ul>
// <li>Gradle now 8.10</li>
// <li>Plugin verifier now 1.373</li>
// <li>Now using Github Dependabot</li>
// <li>bump actions/checkout from 3 to 4</li>
// <li>bump actions/setup-node from 3 to 4</li>
// <li>bump actions/stale from 5.2.0 to 9.0.0</li>
// <li>bump amannn/action-semantic-pull-request from 5.2.0 to 5.5.3</li>
// <li>bump com.fasterxml.jackson.core:jackson-core from 2.15.0 to 2.17.2</li>
// <li>bump com.fasterxml.jackson.dataformat:jackson-dataformat-yaml from 2.15.0 to 2.17.2</li>
// <li>bump com.fasterxml.jackson.module:jackson-module-kotlin from 2.15.0 to 2.17.2</li>
// <li>bump hmarr/auto-approve-action from 3.2.1 to 4.0.0</li>
// <li>bump jvm from 1.9.23 to 2.0.20</li>
// <li>bump marocchino/sticky-pull-request-comment from 2.5.0 to 2.9.0</li>
// <li>bump org.jetbrains.intellij from 1.17.3 to 1.17.4</li>
// <li>bump org.junit.jupiter:junit-jupiter-api from 5.9.2 to 5.11.0</li>
// <li>bump org.junit.jupiter:junit-jupiter-engine from 5.9.2 to 5.11.0</li>
// <li>bump org.junit.vintage:junit-vintage-engine from 5.9.2 to 5.11.0</li>
// <li>bump pascalgn/automerge-action from 0.15.6 to 0.16.3</li>
// </ul>
// """.trimIndent()
// )
//}

//tasks.getByName<org.jetbrains.intellij.tasks.RunPluginVerifierTask>("runPluginVerifier") {
// ideVersions.set(
Expand Down
13 changes: 13 additions & 0 deletions src/main/resources/META-INF/description.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<p>Edit <a href="https://www.asyncapi.com/">AsyncAPI</a> specifications in the IDE with syntax highlighting, auto-completion and a live preview.</p>
<div>
<h3>Features</h3>
<ul>
<li>Recognition of AsyncAPI specifications</li>
<li>AsyncAPI specification auto-completion</li>
<li>AsyncAPI specification example creation from <code>file -> new -> AsyncAPI specification</code></li>
<li>AsyncAPI specification inspection and validation using <a href="https://github.com/asyncapi/spec-json-schemas">AsyncAPI JSON Schema</a></li>
<li>Local references resolving with auto-completion in AsyncAPI specification</li>
<li>File references resolving with auto-completion in AsyncAPI specification</li>
<li>AsyncAPI specification preview as html in built-in/external browser</li>
</ul>
</div>
16 changes: 0 additions & 16 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,6 @@
<name>AsyncAPI</name>
<vendor email="pavelbodyachevskiy@gmail.com" url="https://www.asyncapi.com">AsyncAPI</vendor>

<description><![CDATA[
<h2>⚠️ This plugin doesn't support AsyncAPI 1.x</h2>
<p>Plugin to help you easily edit <a href="https://www.asyncapi.com/">AsyncAPI</a> specification files.</p>
<h3>Features</h3>
<ul>
<li>Recognition of AsyncAPI specifications.</li>
<li>AsyncAPI specification auto-completion.</li>
<li>AsyncAPI specification example creation from <code>file -> new -> AsyncAPI specification</code>.</li>
<li>AsyncAPI specification inspection and validation using <a href="https://github.com/asyncapi/spec-json-schemas">AsyncAPI JSON Schema</a>.</li>
<li>Local references resolving with auto-completion in AsyncAPI specification.</li>
<li>File references resolving with auto-completion in AsyncAPI specification.</li>
<li>AsyncAPI specification preview as html in built-in/external browser.</li>
</ul>
]]>
</description>

<!-- please see https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
on how to target different products -->
<depends>com.intellij.modules.platform</depends>
Expand Down

0 comments on commit 53de3bc

Please sign in to comment.