mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2024-10-27 20:44:05 +00:00
JVM compatibility version extracted to gradle.properties
file
This commit is contained in:
parent
2cfe23439b
commit
a396820b68
5
.github/template-cleanup/gradle.properties
vendored
5
.github/template-cleanup/gradle.properties
vendored
@ -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
|
||||
// Set the JVM compatibility versions
|
||||
properties("javaVersion").let {
|
||||
withType<JavaCompile> {
|
||||
sourceCompatibility = "1.8"
|
||||
targetCompatibility = "1.8"
|
||||
sourceCompatibility = it
|
||||
targetCompatibility = it
|
||||
}
|
||||
withType<KotlinCompile> {
|
||||
kotlinOptions.jvmTarget = "1.8"
|
||||
kotlinOptions.jvmTarget = it
|
||||
}
|
||||
|
||||
withType<Detekt> {
|
||||
jvmTarget = "1.8"
|
||||
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…
Reference in New Issue
Block a user