-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle.kts
96 lines (82 loc) · 2.61 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import java.net.URI
import java.util.*
plugins {
jacoco
idea
java
id("org.jetbrains.intellij") version "0.6.5"
id("com.github.hierynomus.license") version "0.15.0"
id("org.sonarqube") version "3.1.1"
id("com.github.ben-manes.versions") version "0.36.0"
}
repositories {
mavenCentral()
maven {
url = URI("https://dl.bintray.com/jetbrains/intellij-plugin-service")
}
maven {
url = URI("https://dl.bintray.com/antlr/maven/")
}
maven {
url = URI("https://jitpack.io")
}
}
group = "com.github.1c-syntax"
version = "0.3.0" // Plugin version
dependencies {
//compile("com.github.1c-syntax", "bsl-parser", "0.7.1")
implementation("com.github.1c-syntax", "bsl-language-server", "127eb34db65c70ebcf6553785472b4723111d590")
implementation("com.github.ballerina-platform", "lsp4intellij", "8ee2b55267da684fb55d2866ad3293e8a0a21977")
implementation("org.antlr:antlr4-jetbrains-adapter:3.0.alpha.2") {
exclude(group = "com.jetbrains")
}
}
intellij {
version = "IC-2020.1" //Corresponds to 201.6668.121 from plugin.xml; for a full list of IntelliJ IDEA releases please see https://www.jetbrains.com/intellij-repository/releases
pluginName = "Language 1C (BSL)"
updateSinceUntilBuild = true
}
tasks.runPluginVerifier {
ideVersions(listOf("2020.1.4"))
}
tasks.patchPluginXml {
setUntilBuild("300.*")
}
tasks.jacocoTestReport {
reports {
xml.isEnabled = true
}
}
license {
header = rootProject.file("license/HEADER.txt")
ext["year"] = "2018-" + Calendar.getInstance().get(Calendar.YEAR)
ext["name"] = "Alexey Sosnoviy <[email protected]>, Nikita Gryzlov <[email protected]>"
ext["project"] = "IntelliJ Language 1C (BSL) Plugin"
strictCheck = true
exclude("**/*.png")
exclude("**/*.txt")
exclude("**/*.xml")
mapping("java", "SLASHSTAR_STYLE")
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
tasks.runIde {
val property = properties.getOrDefault("sandboxDirectory", "") as Any
systemProperty("idea.plugins.path", property)
jvmArgs("-Xmx1g")
}
sonarqube {
properties {
property("sonar.sourceEncoding", "UTF-8")
property("sonar.host.url", "https://sonarcloud.io")
property("sonar.organization", "1c-syntax")
property("sonar.projectKey", "1c-syntax_intellij-language-1c-bsl")
property("sonar.projectName", "IntelliJ Language 1C (BSL) Plugin")
property("sonar.exclusions", "**/vendor/**/*.*, **/gen/**/*.*")
}
}