-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
83 lines (71 loc) · 2.18 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
78
79
80
81
82
83
plugins {
kotlin("jvm") version "1.9.24"
id("jacoco")
id("com.github.kt3k.coveralls") version "2.12.2"
id("com.gradle.plugin-publish") version "1.3.0"
id("java-gradle-plugin")
id("maven-publish")
id("org.jlleitschuh.gradle.ktlint") version "11.6.1"
}
repositories {
mavenCentral()
gradlePluginPortal()
}
ktlint {
version.set("0.45.2")
}
dependencies {
val kotlinGradlePlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.10"
val ktlintPlugin = "org.jlleitschuh.gradle:ktlint-gradle:11.6.1"
val detectPlugin = "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.7"
implementation(gradleApi())
implementation("com.coditory.gradle:manifest-plugin:0.2.6")
implementation("com.coditory.gradle:integration-test-plugin:1.4.5")
compileOnly(kotlinGradlePlugin)
compileOnly(ktlintPlugin)
compileOnly(detectPlugin)
testImplementation(kotlinGradlePlugin)
testImplementation(ktlintPlugin)
testImplementation(detectPlugin)
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")
}
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}
group = "com.coditory.gradle"
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
events("passed", "failed", "skipped")
setExceptionFormat("full")
}
}
tasks.jacocoTestReport {
reports {
xml.required.set(true)
html.required.set(true)
}
}
coveralls {
sourceDirs = listOf("src/main/kotlin")
}
gradlePlugin {
plugins {
create("buildPlugin") {
id = "com.coditory.build"
implementationClass = "com.coditory.gradle.build.BuildPlugin"
displayName = "Coditory Build Plugin"
description = "Contains standard configuration for java based projects"
}
}
}
pluginBundle {
website = "https://github.com/coditory/gradle-build-plugin"
vcsUrl = "https://github.com/coditory/gradle-build-plugin"
tags = listOf("java build")
}