-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
83 lines (67 loc) · 2.26 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
import com.vanniktech.maven.publish.SonatypeHost
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
group = "io.github.mikaojk"
version = System.getenv("NEW_VERSION") ?: "1.0.0"
val junitJupiterVersion = "5.11.4"
val kotlinVersion = "2.1.0"
plugins {
kotlin("jvm") version "2.1.0"
id("com.vanniktech.maven.publish") version "0.30.0"
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion")
testImplementation("org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion")
}
kotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_21)
}
}
mavenPublishing {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true)
signAllPublications()
coordinates(group.toString(), "norwegian-holidays", version.toString())
pom {
name.set("norwegian-holidays")
description.set("Library for validating a norwegian holidays")
url.set("https://github.com/MikAoJk/norwegian-holidays")
inceptionYear.set("2024")
licenses {
license {
name.set("MIT License")
url.set("https://opensource.org/licenses/MIT")
distribution.set("https://github.com/MikAoJk/norwegian-holidays.git")
}
}
developers {
developer {
id.set("MikAoJk")
name.set("Joakim Taule Kartveit")
email.set("[email protected]")
url.set("https://github.com/MikAoJk/")
}
}
scm {
connection.set("scm:git:git://github.com/MikAoJk/norwegian-holidays.git")
developerConnection.set("scm:git:https://github.com/MikAoJk/norwegian-holidays.git")
url.set("https://github.com/MikAoJk/norwegian-holidays")
}
version = System.getenv("NEW_VERSION")
}
}
tasks {
test {
useJUnitPlatform {}
testLogging {
events("skipped", "failed")
showStackTraces = true
showExceptions = true
showCauses = true
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
}
}
}