-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
47 lines (39 loc) · 1021 Bytes
/
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version PluginVersions.Kotlin apply false // I'm just here for the grammar
}
allprojects {
group = "com.peterfigure"
repositories {
maven("https://repo.spring.io/milestone")
maven("https://repo.spring.io/snapshot")
mavenCentral()
jcenter()
}
}
subprojects {
// https://kotlinlang.org/docs/reference/using-gradle.html#using-gradle-kotlin-dsl
apply {
plugin(PluginIds.Kotlin)
plugin(PluginIds.Idea)
}
repositories {
mavenLocal()
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict", "-Xinline-classes")
jvmTarget = "11"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
dependencies {
implementation.let {
// Kotlin
it(Libraries.KotlinReflect)
it(Libraries.KotlinStdlibJdk8)
}
}
}