-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
49 lines (43 loc) · 1.41 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import static org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_1_9
plugins {
id 'org.jetbrains.intellij' version '1.17.3'
// Should match Kotlin version bundled with IntelliJ https://plugins.jetbrains.com/docs/intellij/using-kotlin.html#kotlin-standard-library
id 'org.jetbrains.kotlin.jvm' version '1.9.22'
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.mockito:mockito-inline:5.2.0'
}
sourceSets {
main {
kotlin.srcDir './src'
resources.srcDir './resources'
}
test {
kotlin.srcDir './test'
}
}
kotlin {
jvmToolchain(17)
}
compileKotlin {
compilerOptions {
apiVersion.set(KOTLIN_1_9)
languageVersion.set(KOTLIN_1_9)
// Compiler flag to allow building against pre-released versions of Kotlin
// because IJ EAP can be built using pre-released Kotlin but it's still worth doing to check API compatibility
freeCompilerArgs = ["-Xskip-metadata-version-check"]
}
}
intellij {
// To find available IDE versions see https://www.jetbrains.com/intellij-repository/releases
// and https://www.jetbrains.com/intellij-repository/snapshots
version = '241.14494.240' // 2024.1 which shows errors for actions without getActionUpdateThread()
// version = "LATEST-EAP-SNAPSHOT"
pluginName = 'LimitedWIP'
downloadSources = true
sameSinceUntilBuild = false
updateSinceUntilBuild = false
}