diff --git a/idea-plugin/gradle.properties b/idea-plugin/gradle.properties index 4ce995b..dcaf71f 100644 --- a/idea-plugin/gradle.properties +++ b/idea-plugin/gradle.properties @@ -6,7 +6,7 @@ systemProp.file.encoding=UTF-8 # \u63D2\u4EF6\u7248\u672C plugin_version=1.4 # \u4F7F\u7528\u7684p3c-pmd\u7248\u672C -p3c_pmd_version=2.1.1-ext-1 +p3c_pmd_version=2.1.1-ext-2 publishUsername=Jack Chu publishToken= publishChannel= diff --git a/p3c-pmd/build.gradle.kts b/p3c-pmd/build.gradle.kts index 1ab9774..d667fbf 100644 --- a/p3c-pmd/build.gradle.kts +++ b/p3c-pmd/build.gradle.kts @@ -1,3 +1,5 @@ +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile + /* * This file was generated by the Gradle 'init' task. */ @@ -28,6 +30,8 @@ description = "p3c-pmd" java { withJavadocJar() withSourcesJar() + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 } publishing { @@ -96,3 +100,10 @@ tasks.withType { options.encoding = "UTF-8" (options as StandardJavadocDocletOptions).tags = listOf("date") } + +tasks.withType { + kotlinOptions { + freeCompilerArgs += "-Xjsr305=strict" + jvmTarget = "1.8" + } +} \ No newline at end of file