forked from JetBrains/ideolog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
58 lines (47 loc) · 1.14 KB
/
build.gradle.kts
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
50
51
52
53
54
55
56
57
58
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
val kotlinVersion = "1.4.32"
repositories {
mavenCentral()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
}
}
plugins {
id("me.filippov.gradle.jvm.wrapper") version "0.9.3"
id("org.jetbrains.intellij") version "1.6.0"
}
dependencies {
implementation(kotlin("test"))
implementation("org.junit.jupiter:junit-jupiter:5.8.2")
}
apply(plugin = "kotlin")
repositories {
mavenCentral()
maven("https://www.jetbrains.com/intellij-repository/snapshots")
}
group = "ideolog"
val buildNumber: String by rootProject.extra
version = buildNumber
intellij {
version.set("2020.3")
pluginName.set("ideolog")
tasks {
withType<org.jetbrains.intellij.tasks.PatchPluginXmlTask> {
updateSinceUntilBuild.set(true)
untilBuild.set("")
}
runIde {
systemProperty("idea.is.internal", "true")
}
test {
useJUnitPlatform()
}
}
}
tasks.withType<KotlinCompile> {
kotlinOptions.allWarningsAsErrors = true
kotlinOptions.freeCompilerArgs += "-Xnew-inference"
kotlinOptions.jvmTarget = "11"
}