diff --git a/mirai-console/tools/intellij-plugin/resources/fileTemplates/code/Plugin build.gradle.ft b/mirai-console/tools/intellij-plugin/resources/fileTemplates/code/Plugin build.gradle.ft index 3f289e301..9786232d0 100644 --- a/mirai-console/tools/intellij-plugin/resources/fileTemplates/code/Plugin build.gradle.ft +++ b/mirai-console/tools/intellij-plugin/resources/fileTemplates/code/Plugin build.gradle.ft @@ -9,7 +9,11 @@ group = '$GROUP_ID' version = '$VERSION' repositories { - #if ($USE_PROXY_REPO) maven { url 'https://maven.aliyun.com/repository/public' } #end + #if($USE_PROXY_REPO)maven { url 'https://maven.aliyun.com/repository/public' }#end mavenCentral() } + +mirai { + jvmTarget JavaVersion.VERSION_1_8 +} diff --git a/mirai-console/tools/intellij-plugin/resources/fileTemplates/code/Plugin build.gradle.kts.ft b/mirai-console/tools/intellij-plugin/resources/fileTemplates/code/Plugin build.gradle.kts.ft index 7d8c41b0b..abba3e442 100644 --- a/mirai-console/tools/intellij-plugin/resources/fileTemplates/code/Plugin build.gradle.kts.ft +++ b/mirai-console/tools/intellij-plugin/resources/fileTemplates/code/Plugin build.gradle.kts.ft @@ -10,7 +10,11 @@ group = "$GROUP_ID" version = "$VERSION" repositories { - #if ($USE_PROXY_REPO) maven("https://maven.aliyun.com/repository/public") #end + #if($USE_PROXY_REPO)maven("https://maven.aliyun.com/repository/public")#end mavenCentral() } + +mirai { + jvmTarget = JavaVersion.VERSION_1_8 +}