Skip to content

Commit

Permalink
perf(p3c-pmd): 降低打包的目标版本到Java8
Browse files Browse the repository at this point in the history
  • Loading branch information
godfather1103 committed Nov 16, 2023
1 parent cb01a76 commit 86ae590
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions p3c-pmd/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

/*
* This file was generated by the Gradle 'init' task.
*/
Expand Down Expand Up @@ -98,3 +100,10 @@ tasks.withType<Javadoc> {
options.encoding = "UTF-8"
(options as StandardJavadocDocletOptions).tags = listOf("date")
}

tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
jvmTarget = "1.8"
}
}

0 comments on commit 86ae590

Please sign in to comment.