-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.gradle.kts
82 lines (71 loc) · 2.56 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
group = "org.jetbrains.research.psiminer"
version = "2.0"
fun getProperty(key: String) =
project.findProperty(key)?.toString() ?: error("Property $key in gradle.properties is not set")
plugins {
id("java")
id("org.jetbrains.intellij") version "1.9.0"
id("io.gitlab.arturbosch.detekt") version "1.17.1"
kotlin("jvm") version "1.7.21"
kotlin("plugin.serialization") version "1.7.21"
}
allprojects {
apply {
plugin("java")
plugin("kotlin")
plugin("org.jetbrains.intellij")
plugin("io.gitlab.arturbosch.detekt")
plugin("kotlinx-serialization")
}
repositories {
mavenCentral()
maven(url = "https://packages.jetbrains.team/maven/p/astminer/astminer")
maven("https://packages.jetbrains.team/maven/p/big-code/bigcode")
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.7.21")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.4.1")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1")
implementation("it.unimi.dsi:fastutil:8.5.9")
implementation("org.jetbrains.research:plugin-utilities-core:1.0") {
exclude("org.slf4j", "slf4j-simple")
exclude("org.slf4j", "slf4j-api")
exclude("org.slf4j", "slf4j")
}
testImplementation(platform("org.junit:junit-bom:5.9.0"))
testImplementation("org.junit.jupiter:junit-jupiter:5.9.0")
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.18.1")
}
configurations.all {
exclude("org.slf4j")
}
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
version.set(getProperty("platformVersion"))
type.set(getProperty("platformType"))
downloadSources.set(getProperty("platformDownloadSources").toBoolean())
updateSinceUntilBuild.set(true)
plugins.set(getProperty("platformPlugins").split(',').map(String::trim).filter(String::isNotEmpty))
}
detekt {
allRules = true
config = files(rootProject.projectDir.resolve("detekt.yml"))
buildUponDefaultConfig = true
parallel = true
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "17"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "17"
}
test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
jvmArgs = listOf("-Djdk.module.illegalAccess.silent=true")
}
}
}