generated from detekt/detekt-custom-rule-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
49 lines (41 loc) · 1.22 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "2.0.21"
`maven-publish`
}
group = "com.doist.detekt"
version = "1.6.0"
repositories {
mavenCentral()
}
dependencies {
compileOnly("io.gitlab.arturbosch.detekt:detekt-api:1.21.0")
testImplementation("io.gitlab.arturbosch.detekt:detekt-test:1.21.0")
testImplementation("io.kotest:kotest-assertions-core:5.4.0")
testImplementation("org.junit.jupiter:junit-jupiter:5.10.0")
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "11"
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
systemProperty("junit.jupiter.testinstance.lifecycle.default", "per_class")
systemProperty("compile-snippet-tests", project.hasProperty("compile-test-snippets"))
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/doist/detekt-rules")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
register<MavenPublication>("gpr") {
from(components["java"])
}
}
}