This repository has been archived by the owner on Jan 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
72 lines (61 loc) · 1.9 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
import io.gitlab.arturbosch.detekt.Detekt
import org.jetbrains.intellij.tasks.BuildSearchableOptionsTask
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompile
import tanvd.kosogor.defaults.configureIdea
group = "org.jetbrains.research.deepbugs"
version = "0.5"
plugins {
id("tanvd.kosogor") version "1.0.7" apply true
id("io.gitlab.arturbosch.detekt") version ("1.6.0") apply false
id("org.jetbrains.intellij") version "0.4.13" apply true
kotlin("jvm") version "1.3.70" apply true
id("org.jetbrains.kotlin.plugin.serialization") version "1.3.70" apply true
}
intellij {
version = "2020.1"
}
allprojects {
repositories {
jcenter()
maven("https://dl.bintray.com/mipt-npm/scientifik")
}
}
subprojects {
apply {
plugin("kotlin")
plugin("org.jetbrains.kotlin.plugin.serialization")
plugin("org.jetbrains.intellij")
plugin("tanvd.kosogor")
plugin("io.gitlab.arturbosch.detekt")
}
tasks.withType<BuildSearchableOptionsTask>().forEach { it.enabled = false }
configureIdea {
exclude += file("build")
}
intellij {
sandboxDirectory = File(rootProject.projectDir, "build/${project.name}/idea-sandbox").canonicalPath
}
tasks.withType<Detekt> {
parallel = true
failFast = false
config.setFrom(File(rootProject.projectDir, "buildScripts/detekt/detekt.yml"))
reports {
xml.enabled = false
html.enabled = false
}
}
dependencies {
compileOnly(kotlin("stdlib"))
compileOnly(kotlin("stdlib-jdk8"))
implementation("org.jetbrains.kotlinx", "kotlinx-serialization-cbor", "0.20.0") {
exclude("org.jetbrains.kotlin")
}
}
tasks.withType<KotlinJvmCompile> {
kotlinOptions {
jvmTarget = "1.8"
languageVersion = "1.3"
apiVersion = "1.3"
}
}
}