From 2f1d87e30f96c36e7ac34d4eae225f63648a3535 Mon Sep 17 00:00:00 2001 From: MrCoder Date: Sat, 17 Sep 2022 20:35:16 +1000 Subject: [PATCH] Updated file format of plugin.xml and build.gradle.kts. --- build.gradle.kts | 34 +++++++------- resource/META-INF/plugin.xml | 89 +++++++++++++++++++----------------- 2 files changed, 64 insertions(+), 59 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 9b9649cf..bd0484d1 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -22,7 +22,7 @@ plugins { id("com.github.node-gradle.node") version "3.2.1" } -apply(plugin="com.github.node-gradle.node") +apply(plugin = "com.github.node-gradle.node") group = properties("pluginGroup") version = properties("pluginVersion") @@ -30,7 +30,7 @@ version = properties("pluginVersion") // Configure project's dependencies repositories { mavenCentral() - flatDir { dirs ("lib") } + flatDir { dirs("lib") } } dependencies { // https://mvnrepository.com/artifact/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer @@ -43,7 +43,7 @@ dependencies { testImplementation("junit:junit:4.12") testImplementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.10") detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.21.0") - testImplementation ("org.spockframework:spock-core:2.2-groovy-4.0") { + testImplementation("org.spockframework:spock-core:2.2-groovy-4.0") { exclude("org.codehaus.groovy", "groovy-xml") } } @@ -133,24 +133,24 @@ tasks { // Extract the section from README.md and provide for the plugin's manifest pluginDescription.set( - provider { - File(projectDir, "README.md").readText().lines().run { - val start = "" - val end = "" - - if (!containsAll(listOf(start, end))) { - throw GradleException("Plugin description section not found in README.md:\n$start ... $end") - } - subList(indexOf(start) + 1, indexOf(end)) - }.joinToString("\n").run { markdownToHTML(this) } - } + provider { + File(projectDir, "README.md").readText().lines().run { + val start = "" + val end = "" + + if (!containsAll(listOf(start, end))) { + throw GradleException("Plugin description section not found in README.md:\n$start ... $end") + } + subList(indexOf(start) + 1, indexOf(end)) + }.joinToString("\n").run { markdownToHTML(this) } + } ) // Get the latest available change notes from the changelog file changeNotes.set( - provider { - changelog.getLatest().toHTML() - } + provider { + changelog.getLatest().toHTML() + } ) } diff --git a/resource/META-INF/plugin.xml b/resource/META-INF/plugin.xml index 2b5d7842..60f17890 100644 --- a/resource/META-INF/plugin.xml +++ b/resource/META-INF/plugin.xml @@ -1,6 +1,6 @@ com.zenuml.jetbrains - ZenUML support + ZenUML Support - + + - - - - + + + + - - - + + + - + - + - + - - + + - - + + - - - - - + + + + + - - - - + + + + - - - - - - - + + + + + + + - - - + + + - + - + - +