-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
58 lines (47 loc) · 1.49 KB
/
build.gradle
File metadata and controls
58 lines (47 loc) · 1.49 KB
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
// Consult https://github.com/JetBrains/intellij-platform-plugin-template
plugins {
id 'org.jetbrains.intellij' version '1.3.0'
id 'org.jetbrains.changelog' version '1.3.1'
id 'org.jetbrains.kotlin.jvm' version '1.6.10'
id 'org.jlleitschuh.gradle.ktlint' version '10.3.0'
}
group 'info.voidev.lspidea'
version '0.1.0'
repositories {
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation "org.jetbrains.kotlin:kotlin-reflect"
implementation 'org.eclipse.lsp4j:org.eclipse.lsp4j:0.14.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = 11
freeCompilerArgs += '-Xjvm-default=enable'
}
}
changelog {
header = "${-> version.get()}"
}
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
version = '2021.3.1'
}
patchPluginXml {
changeNotes = provider { changelog.getLatest().toHTML() }
}
test {
useJUnit()
}
ktlint {
outputToConsole = true
filter {
// exclude receives relative paths, meaning they don't contain '/test/'
// see e.g. https://github.com/JLLeitschuh/ktlint-gradle/issues/222
// Exclude test folder because formatting in tests is usually finicky
exclude { projectDir.toURI().relativize(it.file.toURI()).path.contains('/test/') }
}
}