-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
90 lines (79 loc) · 2.76 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
84
85
86
87
88
89
90
import com.vanniktech.maven.publish.MavenPublishPlugin
import com.vanniktech.maven.publish.SonatypeHost
import io.gitlab.arturbosch.detekt.Detekt
import org.jetbrains.dokka.gradle.DokkaPlugin
plugins {
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.gradle.buildconfig) apply false
alias(libs.plugins.gradle.maven.publish) apply true
alias(libs.plugins.detekt) apply true
alias(libs.plugins.dokka) apply false
}
subprojects {
apply<DokkaPlugin>()
apply<MavenPublishPlugin>()
group = "com.qinshift.linguine"
version = System.getenv("NEXT_VERSION") ?: "0.3.0"
mavenPublishing {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true)
signAllPublications()
pom {
name.set("Linguine")
description.set("Simplifies the localization process in Kotlin projects.")
inceptionYear.set("2024")
url.set("https://github.com/cleverlance/linguine/")
licenses {
license {
name.set("The MIT License")
url.set("https://github.com/cleverlance/linguine/blob/main/license.md")
distribution.set("https://github.com/cleverlance/linguine/blob/main/license.md")
}
}
developers {
developer {
id.set("RealDanie1")
name.set("Daniel Pecuch")
url.set("https://github.com/RealDanie1")
}
developer {
id.set("RadekKuzel")
name.set("Radek Kůžel")
url.set("https://github.com/RadekKuzel")
}
developer {
id.set("JiriHromek")
name.set("Jiří Hromek")
url.set("https://github.com/JiriHromek")
}
developer {
id.set("gerak-cz")
name.set("Bořek Leikep")
url.set("https://github.com/gerak-cz")
}
}
scm {
url.set("https://github.com/cleverlance/linguine/")
connection.set("scm:git:git://github.com/cleverlance/linguine.git")
developerConnection.set("scm:git:ssh://[email protected]:cleverlance/linguine.git")
}
}
}
}
// region Detekt
dependencies {
detektPlugins(libs.detekt)
}
detekt {
source.setFrom(files("$projectDir"))
config.setFrom(files("$projectDir/detekt.yml"))
parallel = true
}
tasks.withType<Detekt> {
exclude("**/*gradle.kts")
exclude("**/build/**")
exclude("**/buildSrc/**")
}
// endregion
tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}