generated from siyul-park/kotlin-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
46 lines (38 loc) · 964 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
val kotlin_version: String by project
buildscript {
val klint_version: String by project
repositories {
maven { url = uri("https://plugins.gradle.org/m2/") }
mavenCentral()
}
dependencies {
classpath("org.jlleitschuh.gradle:ktlint-gradle:$klint_version")
}
}
plugins {
kotlin("jvm")
id("org.jlleitschuh.gradle.ktlint")
}
group = "io.github.siyual_park"
version = "0.0.1-SNAPSHOT"
allprojects {
apply(plugin = "kotlin")
apply(plugin = "org.jlleitschuh.gradle.ktlint")
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib"))
}
}
tasks.withType<Jar> { duplicatesStrategy = DuplicatesStrategy.INHERIT }
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "11"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}