11plugins {
22 id(" java" )
3- id(" org.jetbrains.kotlin.jvm" ) version " 1.9.25 "
4- id(" org.jetbrains.intellij" ) version " 1.17.4 "
3+ id(" org.jetbrains.kotlin.jvm" ) version " 2.1.0 "
4+ id(" org.jetbrains.intellij.platform " ) version " 2.5.0 "
55}
66
77group = " fominok"
88version = " 1.0-SNAPSHOT"
99
1010repositories {
1111 mavenCentral()
12-
12+ intellijPlatform {
13+ defaultRepositories()
14+ }
1315 maven(" https://repo.clojars.org/" )
1416}
1517
@@ -21,7 +23,17 @@ sourceSets {
2123 }
2224}
2325
26+ // Configure Gradle IntelliJ Plugin
27+ // Read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin.html
2428dependencies {
29+ intellijPlatform {
30+ create(" IC" , " 2025.1" )
31+ testFramework(org.jetbrains.intellij.platform.gradle.TestFrameworkType .Platform )
32+
33+ // Add necessary plugin dependencies for compilation here, example:
34+ // bundledPlugin("com.intellij.java")
35+ }
36+
2537 implementation(" org.clojure:clojure:1.12.0" )
2638
2739 implementation(" nrepl:nrepl:1.3.1" )
@@ -31,37 +43,25 @@ dependencies {
3143 implementation(" org.clojure:spec.alpha:0.5.238" )
3244}
3345
34- // Configure Gradle IntelliJ Plugin
35- // Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
36- intellij {
37- version.set( " 2024.1.7 " )
38- type.set( " IC " ) // Target IDE Platform
46+ intellijPlatform {
47+ pluginConfiguration {
48+ ideaVersion {
49+ sinceBuild = " 251 "
50+ }
3951
40- plugins.set(listOf (/* Plugin Dependencies */ ))
52+ changeNotes = """
53+ Initial version
54+ """ .trimIndent()
55+ }
4156}
4257
4358tasks {
4459 // Set the JVM compatibility versions
4560 withType<JavaCompile > {
46- sourceCompatibility = " 17 "
47- targetCompatibility = " 17 "
61+ sourceCompatibility = " 21 "
62+ targetCompatibility = " 21 "
4863 }
4964 withType< org.jetbrains.kotlin.gradle.tasks.KotlinCompile > {
50- kotlinOptions.jvmTarget = " 17"
51- }
52-
53- patchPluginXml {
54- sinceBuild.set(" 241" )
55- untilBuild.set(" 243.*" )
56- }
57-
58- signPlugin {
59- certificateChain.set(System .getenv(" CERTIFICATE_CHAIN" ))
60- privateKey.set(System .getenv(" PRIVATE_KEY" ))
61- password.set(System .getenv(" PRIVATE_KEY_PASSWORD" ))
62- }
63-
64- publishPlugin {
65- token.set(System .getenv(" PUBLISH_TOKEN" ))
65+ kotlinOptions.jvmTarget = " 21"
6666 }
6767}
0 commit comments