-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
70 lines (58 loc) · 1.77 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
import io.gitlab.arturbosch.detekt.extensions.DetektExtension
plugins {
`kotlin-dsl`
`java-gradle-plugin`
jacoco
id("org.jlleitschuh.gradle.ktlint") version "11.6.1"
id("io.gitlab.arturbosch.detekt") version "1.23.1"
id("com.gradle.plugin-publish") version "1.2.1"
}
group = "com.ekino.oss.plugin"
version = "4.2.0"
findProperty("releaseVersion")?.let { version = it }
repositories {
mavenCentral()
maven { setUrl("https://plugins.gradle.org/m2/") }
}
dependencies {
implementation("org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:4.0.0.2929")
implementation("org.jlleitschuh.gradle.ktlint:org.jlleitschuh.gradle.ktlint.gradle.plugin:11.3.1")
implementation("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.1")
testImplementation(gradleTestKit())
testImplementation("com.willowtreeapps.assertk:assertk-jvm:0.27.0")
testImplementation("org.junit.jupiter:junit-jupiter:5.10.0")
}
tasks {
test {
useJUnitPlatform()
jvmArgs = listOf("-Duser.language=en")
}
jacocoTestReport {
reports {
xml.required.set(true)
html.required.set(false)
}
}
}
configure<DetektExtension> {
buildUponDefaultConfig = true
config = files("src/main/resources/detekt-config.yml")
}
gradlePlugin {
website.set("https://github.com/ekino/kotlin-quality-plugin")
vcsUrl.set("https://github.com/ekino/kotlin-quality-plugin")
plugins {
create("kotlin-quality") {
id = "com.ekino.oss.plugin.kotlin-quality"
implementationClass = "com.ekino.oss.plugin.KotlinQualityPlugin"
displayName = "Kotlin Quality plugin"
description = "Kotlin Quality plugin for Ekino projects"
tags.set(listOf("ekino", "kotlin", "quality", "ktlint", "detekt", "sonarqube"))
}
}
}
ktlint {
filter {
include("src/**/*.kt")
}
}