-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle.kts
81 lines (68 loc) · 2.04 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import org.jetbrains.intellij.tasks.PatchPluginXmlTask
import org.jetbrains.intellij.tasks.PublishPluginTask
import kotlin.collections.listOf
val ideaVersion: String by project
val kotlinVersion: String by project
val intellilangName: String by project
val downloadIdeaSources: String by project
val publishToken: String by project
val publishChannels: String by project
val pluginVersion: String by project
val sinceBuildVersion: String by project
val untilBuildVersion: String by project
version=pluginVersion
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id("org.jetbrains.intellij") version "1.17.0"
id("org.sonarqube") version "4.3.0.3225"
kotlin("jvm")
jacoco
}
project(":") {
repositories {
mavenCentral()
}
dependencies {
implementation(project(":parser")) {
exclude(module = "antlr4")
}
implementation("org.antlr", "antlr4-intellij-adaptor", "0.1")
implementation("org.jetbrains.kotlin", "kotlin-reflect", kotlinVersion)
}
apply {
plugin("kotlin")
plugin("org.jetbrains.intellij")
}
intellij {
version.set(ideaVersion)
downloadSources.set(downloadIdeaSources.toBoolean())
updateSinceUntilBuild.set(true)
plugins.set(listOf("Spring", "java-i18n", "properties", "java", "org.intellij.intelliLang"))
tasks.withType<PatchPluginXmlTask> {
sinceBuild.set(sinceBuildVersion)
untilBuild.set(untilBuildVersion)
}
tasks.withType<PublishPluginTask> {
token.set(publishToken)
channels.set(publishChannels.split(','))
}
}
tasks.jacocoTestReport {
reports {
xml.required.set(true)
csv.required.set(false)
html.required.set(false)
}
}
configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.withType(JavaCompile::class) {
options.encoding = "UTF-8"
}
}