-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
67 lines (55 loc) · 1.63 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
plugins {
kotlin("jvm") version "2.1.0"
id("java-gradle-plugin")
id("maven-publish")
id("org.jetbrains.changelog") version "1.3.1"
id("com.diffplug.spotless") version "6.25.0"
id("com.star-zero.gradle.githook") version "1.2.1"
id("com.gradle.plugin-publish") version "1.3.0"
}
group = "com.restartech"
version = "0.9.0"
repositories {
maven("https://maven.aliyun.com/repository/public/")
mavenCentral()
}
dependencies {
}
gradlePlugin {
website = "https://github.com/nmodule/nmodule-gradle-plugin"
vcsUrl = "https://github.com/nmodule/nmodule-gradle-plugin"
plugins.create("niagaraModulePlugin") {
id = "com.restartech.nmodule"
displayName = "Niagara Module Gradle Plugin"
description = "A gradle plugin to build Niagara module in Kotlin"
implementationClass = "niagara.gradle.NiagaraModulePlugin"
tags = listOf("niagara", "nmodule", "kotlin")
}
}
spotless {
lineEndings = com.diffplug.spotless.LineEnding.UNIX
val ktlintVersion = "1.2.1"
val editorConfigOverride = mapOf(
"ij_kotlin_allow_trailing_comma" to true,
"ij_kotlin_allow_trailing_comma_on_call_site" to true,
"ktlint_standard_no-wildcard-imports" to "disabled",
)
kotlin {
target("**/*.kt")
ktlint(ktlintVersion).editorConfigOverride(editorConfigOverride)
}
kotlinGradle {
target("**/*.gradle.kts")
ktlint(ktlintVersion).editorConfigOverride(editorConfigOverride)
}
freshmark {
target("**/*.md")
}
}
githook {
hooks {
create("pre-commit") {
task = "check"
}
}
}