mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2024-11-24 22:42:53 +01:00
71 lines
1.4 KiB
Plaintext
71 lines
1.4 KiB
Plaintext
/*
|
|
* Copyright 2003-2024 The IdeaVim authors
|
|
*
|
|
* Use of this source code is governed by an MIT-style
|
|
* license that can be found in the LICENSE.txt file or at
|
|
* https://opensource.org/licenses/MIT.
|
|
*/
|
|
|
|
plugins {
|
|
id("java")
|
|
kotlin("jvm")
|
|
id("org.jetbrains.intellij")
|
|
}
|
|
|
|
val kotlinVersion: String by project
|
|
val ideaVersion: String by project
|
|
val javaVersion: String by project
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url = uri("https://cache-redirector.jetbrains.com/intellij-dependencies") }
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation("org.junit.jupiter:junit-jupiter")
|
|
compileOnly("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test:$kotlinVersion")
|
|
testImplementation(testFixtures(project(":"))) // The root project
|
|
}
|
|
|
|
tasks {
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
verifyPlugin {
|
|
enabled = false
|
|
}
|
|
|
|
publishPlugin {
|
|
enabled = false
|
|
}
|
|
|
|
runIde {
|
|
enabled = false
|
|
}
|
|
|
|
runPluginVerifier {
|
|
enabled = false
|
|
}
|
|
}
|
|
|
|
intellij {
|
|
version.set(ideaVersion)
|
|
type.set("IC")
|
|
// Yaml is only used for testing. It's part of the IdeaIC distribution, but needs to be included as a reference
|
|
plugins.set(listOf("java", "yaml"))
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(javaVersion))
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(javaVersion))
|
|
}
|
|
}
|