11import org.jetbrains.changelog.markdownToHTML
22import org.jetbrains.intellij.tasks.RunPluginVerifierTask.FailureLevel
3- import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
43
54fun properties (key : String ) = project.findProperty(key).toString()
65
@@ -20,13 +19,13 @@ plugins {
2019 // Java support
2120 id(" java" )
2221 // Kotlin support
23- id(" org.jetbrains.kotlin.jvm" ) version " 1.5.31 "
22+ id(" org.jetbrains.kotlin.jvm" ) version " 1.7.10 "
2423 // Gradle IntelliJ Plugin
25- id(" org.jetbrains.intellij" ) version " 1.5.2 "
24+ id(" org.jetbrains.intellij" ) version " 1.7.0 "
2625 // Gradle Changelog Plugin
27- id(" org.jetbrains.changelog" ) version " 1.3.0 "
26+ id(" org.jetbrains.changelog" ) version " 1.3.1 "
2827
29- kotlin(" plugin.serialization" ) version " 1.5.31 "
28+ kotlin(" plugin.serialization" ) version " 1.7.10 "
3029}
3130
3231group = properties(" pluginGroup" )
@@ -38,19 +37,26 @@ repositories {
3837 mavenCentral()
3938}
4039
40+ // Set the JVM language level used to compile sources and generate files - Java 11 is required since 2020.3
41+ kotlin {
42+ jvmToolchain {
43+ languageVersion.set(JavaLanguageVersion .of(11 ))
44+ }
45+ }
46+
4147dependencies {
42- val ktor_version = " 1.6.4 "
48+ val ktor_version = " 2.1.0 "
4349
44- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2 " )
45- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-swing:1.5.2 " )
46- implementation(" org.jetbrains.kotlin:kotlin-reflect:1.5.31 " )
47- implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:1.3 .0" )
50+ implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4 " )
51+ implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-swing:1.6.4 " )
52+ implementation(" org.jetbrains.kotlin:kotlin-reflect:1.7.10 " )
53+ implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:1.4 .0" )
4854 implementation(" io.ktor:ktor-client-core:$ktor_version " )
4955 implementation(" io.ktor:ktor-client-java:$ktor_version " )
5056
51- testImplementation(" org.junit.jupiter:junit-jupiter-api:5.8.1 " )
52- testRuntimeOnly(" org.junit.jupiter:junit-jupiter-engine:5.8.1 " )
53- testImplementation(" io.mockk:mockk:1.11.0 " )
57+ testImplementation(" org.junit.jupiter:junit-jupiter-api:5.9.0 " )
58+ testRuntimeOnly(" org.junit.jupiter:junit-jupiter-engine:5.9.0 " )
59+ testImplementation(" io.mockk:mockk:1.12.7 " )
5460}
5561
5662configurations {
@@ -73,8 +79,6 @@ intellij {
7379 pluginName.set(properties(" pluginName" ))
7480 version.set(properties(" platformVersion" ))
7581 type.set(properties(" platformType" ))
76- downloadSources.set(properties(" platformDownloadSources" ).toBoolean())
77- updateSinceUntilBuild.set(true )
7882
7983 // Plugin Dependencies. Uses `platformPlugins` property from the gradle.properties file.
8084 plugins.set(properties(" platformPlugins" ).split(' ,' ).map(String ::trim).filter(String ::isNotEmpty))
@@ -101,18 +105,6 @@ tasks {
101105 useJUnitPlatform()
102106 }
103107
104- // Set the JVM compatibility versions
105- properties(" javaVersion" ).let {
106- withType<JavaCompile > {
107- sourceCompatibility = it
108- targetCompatibility = it
109- }
110- withType<KotlinCompile > {
111- kotlinOptions.jvmTarget = it
112- kotlinOptions.freeCompilerArgs = listOf (" -Xjvm-default=compatibility" )
113- }
114- }
115-
116108 wrapper {
117109 gradleVersion = properties(" gradleVersion" )
118110 }
@@ -136,15 +128,6 @@ tasks {
136128 failureLevel.set(failLevel)
137129 }
138130
139- // Configure UI tests plugin
140- // Read more: https://github.com/JetBrains/intellij-ui-test-robot
141- runIdeForUiTests {
142- systemProperty(" robot-server.port" , " 8082" )
143- systemProperty(" ide.mac.message.dialogs.as.sheets" , " false" )
144- systemProperty(" jb.privacy.policy.text" , " <!--999.999-->" )
145- systemProperty(" jb.consents.confirmation.enabled" , " false" )
146- }
147-
148131 signPlugin {
149132 certificateChain.set(System .getenv(" CERTIFICATE_CHAIN" ))
150133 privateKey.set(System .getenv(" PRIVATE_KEY" ))
0 commit comments