-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
66 lines (54 loc) · 1.52 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
59
60
61
62
63
64
65
66
@file:Suppress("TrailingComma", "ConvertLambdaToReference")
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
java
id("org.jetbrains.intellij") version "1.13.2"
kotlin("jvm") version "1.8.10"
}
group = "com.github.lppedd"
version = "0.8.3"
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib"))
testImplementation("junit:junit:4.13.2")
}
intellij {
version.set("IU-201.6668.113")
downloadSources.set(true)
pluginName.set("idea-return-highlighter")
plugins.set(listOf(
"java",
"JavaScriptLanguage",
"Pythonid:201.6668.113",
"com.jetbrains.php:201.6668.113"
))
}
configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks {
wrapper {
distributionType = Wrapper.DistributionType.ALL
}
val kotlinSettings: KotlinCompile.() -> Unit = {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.freeCompilerArgs += listOf(
"-Xno-call-assertions",
"-Xno-receiver-assertions",
"-Xno-param-assertions",
)
}
compileKotlin(kotlinSettings)
compileTestKotlin(kotlinSettings)
patchPluginXml {
version.set(project.version.toString())
sinceBuild.set("201.6668")
untilBuild.set("")
val projectPath = projectDir.path
pluginDescription.set((File("$projectPath/plugin-description.html").readText(Charsets.UTF_8)))
changeNotes.set((File("$projectPath/change-notes/${version.get().replace('.', '_')}.html").readText(Charsets.UTF_8)))
}
}