generated from detekt/detekt-custom-rule-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
46 lines (37 loc) · 1016 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
import io.gitlab.arturbosch.detekt.Detekt
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.0"
`maven-publish`
id("io.gitlab.arturbosch.detekt") version "1.18.1"
}
group = "com.github.niehm"
version = "0.0.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
compileOnly("io.gitlab.arturbosch.detekt:detekt-api:1.18.1")
testImplementation("io.gitlab.arturbosch.detekt:detekt-test:1.18.1")
testImplementation("org.assertj:assertj-core:3.21.0")
testImplementation("org.junit.jupiter:junit-jupiter:5.8.1")
}
tasks {
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "11"
}
withType<Test> {
useJUnitPlatform()
}
withType<Detekt> {
// Target version of the generated JVM bytecode. It is used for type resolution.
this.jvmTarget = "11"
}
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
}
}
}