-
Notifications
You must be signed in to change notification settings - Fork 20
/
build.gradle.kts
57 lines (45 loc) · 1.18 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.intellij.tasks.PatchPluginXmlTask
import org.jetbrains.intellij.tasks.PublishTask
plugins {
idea
java
kotlin("jvm") version "1.4.32"
id("org.jetbrains.intellij") version "0.7.3"
}
group = "no.tornado"
version = "1.7.20.1"
val publishUsername: String by rootProject.extra
val publishPassword: String by rootProject.extra
repositories {
mavenCentral()
}
intellij {
version = "2021.1.1"
//updateSinceUntilBuild = false
setPlugins("java", "properties", "Kotlin", "com.intellij.javafx:1.0.3")
}
tasks {
patchPluginXml {
version(project.version)
sinceBuild("203")
untilBuild("")
}
publishPlugin {
username(publishUsername)
password(publishPassword)
}
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "11"
}
runIde {
jvmArgs("--add-exports", "java.base/jdk.internal.vm=ALL-UNNAMED")
}
buildSearchableOptions {
jvmArgs("--add-exports", "java.base/jdk.internal.vm=ALL-UNNAMED")
}
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}