52 lines
1 KiB
Kotlin
52 lines
1 KiB
Kotlin
plugins {
|
|
id("java")
|
|
id("org.jetbrains.kotlin.jvm") version "1.9.20"
|
|
id("org.jetbrains.intellij.platform") version "2.3.0"
|
|
}
|
|
|
|
group = "com.github.shautvast"
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
intellijPlatform {
|
|
defaultRepositories()
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(17)
|
|
}
|
|
|
|
dependencies {
|
|
intellijPlatform {
|
|
create("IC", "2024.2.5")
|
|
testFramework(org.jetbrains.intellij.platform.gradle.TestFrameworkType.Platform)
|
|
bundledPlugin("Git4Idea")
|
|
}
|
|
|
|
|
|
}
|
|
|
|
intellijPlatform {
|
|
pluginConfiguration {
|
|
ideaVersion {
|
|
sinceBuild = "242"
|
|
}
|
|
|
|
changeNotes = """
|
|
Initial version: insert branchname in commit dialog. No configuration needed.
|
|
""".trimIndent()
|
|
}
|
|
}
|
|
|
|
tasks {
|
|
// Set the JVM compatibility versions
|
|
withType<JavaCompile> {
|
|
sourceCompatibility = "21"
|
|
targetCompatibility = "21"
|
|
}
|
|
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
kotlinOptions.jvmTarget = "21"
|
|
}
|
|
}
|