-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
72 lines (60 loc) · 1.55 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 org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
import tanvd.kosogor.proxy.publishJar
group = "tanvd.konfy"
version = "0.1.28"
plugins {
id("tanvd.kosogor") version "1.0.18" apply false
id("io.gitlab.arturbosch.detekt") version ("1.22.0") apply true
kotlin("jvm") version "1.9.22" apply false
`kotlin-dsl`
`maven-publish`
}
subprojects {
apply {
plugin("kotlin")
plugin("maven-publish")
plugin("tanvd.kosogor")
plugin("io.gitlab.arturbosch.detekt")
}
repositories {
mavenCentral()
}
publishJar { }
publishing {
repositories {
maven {
name = "SpacePackages"
url = uri("https://packages.jetbrains.team/maven/p/konfy/maven")
credentials {
username = System.getenv("JB_SPACE_CLIENT_ID")
password = System.getenv("JB_SPACE_CLIENT_SECRET")
}
}
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks.withType<KotlinJvmCompile>().configureEach {
kotlinOptions {
jvmTarget = "17"
apiVersion = "1.9"
languageVersion = "1.9"
freeCompilerArgs += "-Xuse-ir"
}
}
detekt {
parallel = true
config = rootProject.files("detekt.yml")
reports {
xml {
enabled = false
}
html {
enabled = false
}
}
}
}