-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
60 lines (51 loc) · 1.34 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
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("nebula.project") version "9.1.6" apply false
id("com.diffplug.spotless") version "6.0.0" apply false
id("com.github.ben-manes.versions") version "0.39.0"
kotlin("jvm") version "1.5.31" apply false
}
allprojects {
group = "net.wrony.kopernic"
version = "1.0-SNAPSHOT"
}
subprojects {
apply {
plugin("org.jetbrains.kotlin.jvm")
plugin("nebula.project")
plugin("com.diffplug.spotless")
}
configure<KotlinJvmProjectExtension> {
jvmToolchain {
(this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(16))
}
}
repositories {
mavenCentral()
}
dependencies {
val implementation by configurations
implementation(kotlin("stdlib-jdk8"))
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
}
}
configure<com.diffplug.gradle.spotless.SpotlessExtension> {
kotlin {
ktlint()
}
kotlinGradle {
target("*.gradle.kts")
ktlint()
}
}
}
tasks {
wrapper {
gradleVersion = "7.3"
distributionType = Wrapper.DistributionType.ALL
}
}