-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
57 lines (50 loc) · 1.58 KB
/
build.gradle.kts
File metadata and controls
57 lines (50 loc) · 1.58 KB
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
plugins {
kotlin("jvm") version "2.2.0"
`java-library`
`maven-publish`
}
group = "de.no3x"
version = "1.0.0"
dependencies {
val junitVersion = "5.14.1"
implementation(platform("org.junit:junit-bom:$junitVersion"))
testImplementation("com.github.No3x:junit-locale-extension:1.0.0")
testImplementation("com.willowtreeapps.assertk:assertk:0.28.1")
testImplementation(group = "org.junit.jupiter", name = "junit-jupiter-engine")
testImplementation(group = "org.junit.jupiter", name = "junit-jupiter-params")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
java {
withSourcesJar()
withJavadocJar()
}
tasks.test {
useJUnitPlatform()
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
artifactId = "kbytes"
pom {
name.set("kbytes")
description.set("Small Kotlin DSL for byte and file size calculations with units.")
url.set("https://github.com/No3x/kbytes")
licenses {
license {
name.set("MIT License")
url.set("https://opensource.org/licenses/MIT")
}
}
scm {
url.set("https://github.com/No3x/kbytes")
connection.set("scm:git:https://github.com/No3x/kbytes.git")
developerConnection.set("scm:git:ssh://git@github.com/No3x/kbytes.git")
}
}
}
}
}
kotlin {
jvmToolchain(21)
}