-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
87 lines (70 loc) · 1.75 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
import com.vanniktech.maven.publish.SonatypeHost
import io.gitlab.arturbosch.detekt.Detekt
plugins {
kotlin("multiplatform") version "2.1.0"
id("com.vanniktech.maven.publish") version "0.30.0"
signing
id("org.jetbrains.dokka") version "1.9.20"
id("io.gitlab.arturbosch.detekt") version "1.23.7"
}
group = "br.com.colman.simplecpfvalidator"
version = System.getenv("RELEASE_VERSION") ?: "local"
repositories {
mavenCentral()
}
kotlin {
applyDefaultHierarchyTemplate()
jvm()
js {
browser()
nodejs()
}
iosX64()
iosArm64()
iosSimulatorArm64()
macosX64()
macosArm64()
linuxX64()
linuxArm64()
sourceSets {
val jvmTest by getting {
dependencies {
implementation("io.kotest:kotest-runner-junit5:5.9.1")
implementation("io.kotest:kotest-property:5.9.1")
}
}
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
mavenPublishing {
publishToMavenCentral(SonatypeHost.DEFAULT, automaticRelease = true)
signAllPublications()
pom {
name.set("SimpleCpfValidator")
description.set("Simple CPF Validator")
url.set("https://www.github.com/LeoColman/SimpleCpfValidator")
scm {
connection.set("scm:git:http://www.github.com/LeoColman/SimpleCpfValidator/")
developerConnection.set("scm:git:http://github.com/LeoColman/")
url.set("https://www.github.com/LeoColman/SimpleCpfValidator")
}
licenses {
license {
name.set("The Apache 2.0 License")
url.set("https://opensource.org/licenses/Apache-2.0")
}
}
developers {
developer {
id.set("LeoColman")
name.set("Leonardo Colman Lopes")
email.set("[email protected]")
}
}
}
}
tasks.register("detektAll") {
dependsOn(tasks.withType<Detekt>())
}