diff --git a/build.gradle.kts b/build.gradle.kts index b164301..308cc97 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -14,24 +14,36 @@ repositories { // Configure Gradle IntelliJ Plugin // Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html intellij { - version.set("2024.3") - type.set("IC") // Target IDE Platform - plugins.set(listOf(/* Plugin Dependencies */)) + version.set("2020.3") // 使用最早兼容的版本作为构建 SDK + type.set("IU") // 表示 IntelliJ IDEA Ultimate。IDEA Community的IC,IDEA Ultimate的IU + //设置各版本兼容 + updateSinceUntilBuild.set(false) // 不自动更新 plugin.xml 中的 since-build/until-build + plugins.set(listOf()) // 如果没有依赖其他插件 } + tasks { // Set the JVM compatibility versions +// withType { +// sourceCompatibility = "17" +// targetCompatibility = "17" +// } +// withType { +// kotlinOptions.jvmTarget = "17" +// } + withType { - sourceCompatibility = "17" - targetCompatibility = "17" + sourceCompatibility = "11" + targetCompatibility = "11" } withType { - kotlinOptions.jvmTarget = "17" + kotlinOptions.jvmTarget = "11" } + patchPluginXml { - sinceBuild.set("231.*") - untilBuild.set("243.*") + sinceBuild.set("203") // 2020.3 的构建号是 203 + untilBuild.set("2999.9") // 表示支持到未来所有版本(例如支持到 2099 年) } signPlugin { diff --git a/gradle.properties b/gradle.properties index 65247ed..b862d1a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,11 +4,14 @@ kotlin.stdlib.default.dependency=false org.gradle.configuration-cache=true # Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html org.gradle.caching=true -org.gradle.java.home=/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home +#org.gradle.java.home=/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home +#org.gradle.java.version=17 +org.gradle.java.home=/Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home +org.gradle.java.version=11 + systemProp.http.proxyHost=127.0.0.1 systemProp.http.proxyPort=7890 systemProp.https.proxyHost=127.0.0.1 systemProp.https.proxyPort=7890 - \ No newline at end of file diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 37ed2ec..04c3780 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -15,7 +15,7 @@ Guidelines: https://plugins.jetbrains.com/docs/marketplace/plugin-overview-page.html#plugin-description --> Maven聚合项目快速生成插件,帮助您快速创建标准的多模块Maven项目结构。

- +

主要功能:

  • 一键创建Maven多模块项目结构
  • @@ -27,6 +27,7 @@

    使用方法:

    在IDEA中,选择"File > New > Create Maven Aggregation Project",然后按照向导完成配置。

    +

    最低支持版本:IntelliJ IDEA 2020.3及以上版本

    ]]> + + + \ No newline at end of file