larc r25

54 lines ยท 1.2 KB Raw
1 plugins {
2 id("java")
3 id("org.jetbrains.kotlin.jvm") version "2.1.0"
4 id("org.jetbrains.intellij.platform") version "2.7.1"
5 }
6
7 group = "org.iwakura"
8 version = "1.0-SNAPSHOT"
9
10 repositories {
11 mavenCentral()
12 intellijPlatform {
13 defaultRepositories()
14 }
15 }
16
17 // Configure IntelliJ Platform Gradle Plugin
18 // Read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin.html
19 dependencies {
20 intellijPlatform {
21 create("IC", "2025.1.4.1")
22 testFramework(org.jetbrains.intellij.platform.gradle.TestFrameworkType.Platform)
23
24 // Add necessary plugin dependencies for compilation here, example:
25 // bundledPlugin("com.intellij.java")
26 }
27 }
28
29 intellijPlatform {
30 pluginConfiguration {
31 ideaVersion {
32 sinceBuild = "251"
33 }
34
35 changeNotes = """
36 Initial version
37 """.trimIndent()
38 }
39 }
40
41 tasks {
42 // Set the JVM compatibility versions
43 withType<JavaCompile> {
44 sourceCompatibility = "21"
45 targetCompatibility = "21"
46 }
47 }
48
49 kotlin {
50 compilerOptions {
51 jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_21)
52 }
53 }
54