mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2026-03-02 03:39:24 +00:00
JVM compatibility version extracted to gradle.properties file
This commit is contained in:
committed by
Jakub Chrzanowski
parent
2cfe23439b
commit
a396820b68
@@ -66,17 +66,18 @@ detekt {
|
||||
// Configure UI tests plugin
|
||||
// Read more: https://github.com/JetBrains/intellij-ui-test-robot
|
||||
tasks {
|
||||
// Set the compatibility versions to 1.8
|
||||
withType<JavaCompile> {
|
||||
sourceCompatibility = "1.8"
|
||||
targetCompatibility = "1.8"
|
||||
}
|
||||
withType<KotlinCompile> {
|
||||
kotlinOptions.jvmTarget = "1.8"
|
||||
}
|
||||
|
||||
withType<Detekt> {
|
||||
jvmTarget = "1.8"
|
||||
// Set the JVM compatibility versions
|
||||
properties("javaVersion").let {
|
||||
withType<JavaCompile> {
|
||||
sourceCompatibility = it
|
||||
targetCompatibility = it
|
||||
}
|
||||
withType<KotlinCompile> {
|
||||
kotlinOptions.jvmTarget = it
|
||||
}
|
||||
withType<Detekt> {
|
||||
jvmTarget = it
|
||||
}
|
||||
}
|
||||
|
||||
wrapper {
|
||||
|
||||
Reference in New Issue
Block a user