-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
77 lines (67 loc) · 2.09 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
71
72
73
74
75
76
77
plugins {
kotlin("jvm") version "2.0.21"
id("com.coditory.integration-test") version "2.1.0"
id("java-gradle-plugin")
id("maven-publish")
id("com.gradle.plugin-publish") version "1.3.0"
id("org.jlleitschuh.gradle.ktlint") version "12.1.1"
id("org.jetbrains.kotlinx.kover") version "0.8.3"
}
repositories {
mavenCentral()
}
dependencies {
compileOnly("org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.21")
testImplementation("org.assertj:assertj-core:3.26.3")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.3")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.11.3")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.11.3")
}
group = "com.coditory.gradle"
kotlin {
compilerOptions {
allWarningsAsErrors = true
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
ktlint {
version = "1.4.0"
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
events("passed", "failed", "skipped")
setExceptionFormat("full")
}
}
tasks.register("coverage") {
dependsOn("koverXmlReport", "koverHtmlReport", "koverLog")
}
// Marking new version (incrementPatch [default], incrementMinor, incrementMajor)
// ./gradlew markNextVersion -Prelease.incrementer=incrementMinor
// Releasing the plugin:
// ./gradlew release && ./gradlew publishPlugins
gradlePlugin {
website = "https://github.com/coditory/gradle-integration-test-plugin"
vcsUrl = "https://github.com/coditory/gradle-integration-test-plugin"
plugins {
create("integrationTestPlugin") {
id = "com.coditory.integration-test"
implementationClass = "com.coditory.gradle.integration.IntegrationTestPlugin"
displayName = "Integration test plugin"
description = "Gradle Plugin for integration tests"
tags = listOf("test", "integration", "integration-test", "java-integration-test")
}
}
}
// Prints project version.
// Usage: ./gradlew version --quiet
tasks.register("version") {
doLast {
println(project.version)
}
}