-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
88 lines (69 loc) · 2.5 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
88 lines (69 loc) · 2.5 KB
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
84
85
86
87
88
plugins {
alias(libs.plugins.kotlin.jvm)
// https://plugins.gradle.org/docs/publish-plugin
alias(libs.plugins.gradle.plugin.publish)
id("java-gradle-plugin")
alias(libs.plugins.detekt)
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.androidgitversion)
id("maven-publish")
}
androidGitVersion {
tagPattern = "^v[0-9]+.*"
}
detekt {
autoCorrect = true
buildUponDefaultConfig = true
}
kotlin {
jvmToolchain(17)
}
repositories {
maven { url = uri("https://repo.gradle.org/gradle/libs-releases") }
mavenCentral()
}
dependencies {
implementation(gradleApi())
implementation(libs.jackson.dataformat.toml)
implementation(libs.kotlinx.serialization.json)
testImplementation(gradleTestKit())
testImplementation(libs.truth)
testImplementation(libs.junit.jupiter.api)
testImplementation(libs.junit.jupiter.params)
testImplementation(libs.junit.jupiter.params)
testImplementation(libs.json.unit.assertj)
testRuntimeOnly(libs.junit.jupiter.engine)
testRuntimeOnly(libs.junit.platform.launcher)
detektPlugins(libs.detekt.formatting)
}
tasks.withType<Test> {
useJUnitPlatform()
}
version = androidGitVersion.name().replace("v", "")
group = "se.premex"
gradlePlugin {
website = "https://github.com/premex-ab/ownership-gradle-plugin"
vcsUrl = "https://github.com/premex-ab/ownership-gradle-plugin.git"
description = "A plugin that verifies that ownership files are created in the projects"
plugins {
create("ownership") {
id = "se.premex.ownership"
implementationClass = "se.premex.OwnershipPlugin"
displayName =
"Verify ownership files are in place in subproject and have required information"
description =
"""Check for existence of OWNERSHIP.toml in subprojects and verify that it contains ownership information. It will validate the syntax in the file against the toml specification
|
|Will soon also check for description and have additional tasks to generate code owner files that are understood by source control systems.
|
|Attaches to the check task to perform validation on OWNERSHIP.toml files.
""".trimMargin()
tags.set(listOf("ownership", "codeowners", "governance", "quality"))
}
}
}
allprojects {
tasks.withType<ValidatePlugins>().configureEach {
enableStricterValidation.set(true)
}
}