Browse Source

修改为jdk11

兼容到2020.3版本及以上 到未来版本
设置2020.3版本以上兼容
旗舰版支持
main
wandong 1 year ago
parent
commit
6061b6c83e
  1. 28
      build.gradle.kts
  2. 7
      gradle.properties
  3. 7
      src/main/resources/META-INF/plugin.xml

28
build.gradle.kts

@ -14,24 +14,36 @@ repositories {
// Configure Gradle IntelliJ Plugin // Configure Gradle IntelliJ Plugin
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html // Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
intellij { intellij {
version.set("2024.3") version.set("2020.3") // 使用最早兼容的版本作为构建 SDK
type.set("IC") // Target IDE Platform type.set("IU") // 表示 IntelliJ IDEA Ultimate。IDEA Community的IC,IDEA Ultimate的IU
plugins.set(listOf(/* Plugin Dependencies */)) //设置各版本兼容
updateSinceUntilBuild.set(false) // 不自动更新 plugin.xml 中的 since-build/until-build
plugins.set(listOf()) // 如果没有依赖其他插件
} }
tasks { tasks {
// Set the JVM compatibility versions // Set the JVM compatibility versions
// withType<JavaCompile> {
// sourceCompatibility = "17"
// targetCompatibility = "17"
// }
// withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
// kotlinOptions.jvmTarget = "17"
// }
withType<JavaCompile> { withType<JavaCompile> {
sourceCompatibility = "17" sourceCompatibility = "11"
targetCompatibility = "17" targetCompatibility = "11"
} }
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> { withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "17" kotlinOptions.jvmTarget = "11"
} }
patchPluginXml { patchPluginXml {
sinceBuild.set("231.*") sinceBuild.set("203") // 2020.3 的构建号是 203
untilBuild.set("243.*") untilBuild.set("2999.9") // 表示支持到未来所有版本(例如支持到 2099 年)
} }
signPlugin { signPlugin {

7
gradle.properties

@ -4,11 +4,14 @@ kotlin.stdlib.default.dependency=false
org.gradle.configuration-cache=true org.gradle.configuration-cache=true
# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html # Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html
org.gradle.caching=true 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.proxyHost=127.0.0.1
systemProp.http.proxyPort=7890 systemProp.http.proxyPort=7890
systemProp.https.proxyHost=127.0.0.1 systemProp.https.proxyHost=127.0.0.1
systemProp.https.proxyPort=7890 systemProp.https.proxyPort=7890

7
src/main/resources/META-INF/plugin.xml

@ -15,7 +15,7 @@
Guidelines: https://plugins.jetbrains.com/docs/marketplace/plugin-overview-page.html#plugin-description --> Guidelines: https://plugins.jetbrains.com/docs/marketplace/plugin-overview-page.html#plugin-description -->
<description><![CDATA[ <description><![CDATA[
<p>Maven聚合项目快速生成插件,帮助您快速创建标准的多模块Maven项目结构。</p> <p>Maven聚合项目快速生成插件,帮助您快速创建标准的多模块Maven项目结构。</p>
<p><b>主要功能:</b></p> <p><b>主要功能:</b></p>
<ul> <ul>
<li>一键创建Maven多模块项目结构</li> <li>一键创建Maven多模块项目结构</li>
@ -27,6 +27,7 @@
<p><b>使用方法:</b></p> <p><b>使用方法:</b></p>
<p>在IDEA中,选择"File > New > Create Maven Aggregation Project",然后按照向导完成配置。</p> <p>在IDEA中,选择"File > New > Create Maven Aggregation Project",然后按照向导完成配置。</p>
<p>最低支持版本:IntelliJ IDEA 2020.3及以上版本</p>
]]></description> ]]></description>
<!-- Product and plugin compatibility requirements. <!-- Product and plugin compatibility requirements.
@ -49,4 +50,8 @@
</actions> </actions>
<!--手动设置版本号 -->
<idea-version since-build="203" until-build="2999.9"/>
</idea-plugin> </idea-plugin>
Loading…
Cancel
Save