generated from Kantis/kotlin-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
42 lines (37 loc) · 1.2 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
plugins {
id("ks3.conventions.base")
id("ks3.conventions.git-versioning")
idea
}
group = "io.ks3"
version = "0.0.0-SNAPSHOT"
gitVersioning.apply {
refs {
// if git HEAD is attached:
branch(".+") { version = "\${ref}-SNAPSHOT" }
// if HEAD is detached:
tag("v(?<version>.*)") { version = "\${ref.version}" }
}
// optional fallback configuration in case of no matching ref configuration
rev { version = "\${commit}" }
}
idea {
module {
isDownloadSources = true
isDownloadJavadoc = false
excludeDirs = excludeDirs + layout.files(
".idea",
"gradle/kotlin-js-store", // location of the lock file, overridden by Kotlin/JS convention
"gradle/wrapper",
)
// exclude generated Gradle code, so it doesn't clog up search results
excludeDirs.addAll(
layout.files(
"build-logic/build/generated-sources/kotlin-dsl-accessors/kotlin/gradle",
"build-logic/build/generated-sources/kotlin-dsl-external-plugin-spec-builders/kotlin/gradle",
"build-logic/build/generated-sources/kotlin-dsl-plugins/kotlin",
"build-logic/build/pluginUnderTestMetadata",
),
)
}
}