JVM compatibility version extracted to `gradle.properties` file

pull/175/head
Jakub Chrzanowski 3 years ago committed by Jakub Chrzanowski
parent 2cfe23439b
commit a396820b68

@ -22,6 +22,11 @@ platformDownloadSources = true
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
platformPlugins =
# Java language level used to compile sources and to generate the files for - Java 11 is required since 2020.3
javaVersion = 11
gradleVersion = 7.1.1
# Opt-out flag for bundling Kotlin standard library.
# See https://plugins.jetbrains.com/docs/intellij/kotlin.html#kotlin-standard-library for details.
# suppress inspection "UnusedProperty"

@ -7,6 +7,7 @@
- GitHub Actions: UI Tests workflow
- Suppress `UnusedProperty` inspection for the `kotlin.stdlib.default.dependency` in `gradle.properties`
- Use Gradle `wrapper` task to handle Gradle updates
- JVM compatibility version extracted to `gradle.properties` file
### Changed
- Update `pluginVerifierIdeVersions` to `2020.3.4, 2021.1.3`

@ -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 {

@ -22,6 +22,9 @@ platformDownloadSources = true
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
platformPlugins =
# Java language level used to compile sources and to generate the files for - Java 11 is required since 2020.3
javaVersion = 11
gradleVersion = 7.1.1
# Opt-out flag for bundling Kotlin standard library.

Loading…
Cancel
Save