-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
90 lines (77 loc) · 2.28 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 fr.brouillard.oss.jgitver.Strategies
plugins {
kotlin("jvm") version "2.0.0"
id("fr.brouillard.oss.gradle.jgitver") version "0.9.1"
`maven-publish`
signing
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
}
group = "nl.hiddewieringa"
repositories {
mavenCentral()
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
dependencies {
api("javax.money", "money-api", "1.1")
implementation(kotlin("stdlib"))
testImplementation("org.javamoney", "moneta", "1.4.4")
testImplementation("org.junit.jupiter", "junit-jupiter", "5.10.2")
testRuntimeOnly("org.junit.platform", "junit-platform-launcher")
}
java {
withJavadocJar()
withSourcesJar()
}
tasks {
withType<Test> {
useJUnitPlatform()
}
}
jgitver {
strategy(Strategies.MAVEN)
}
publishing {
publications {
create<MavenPublication>("maven") {
pom {
name.set("Money Kotlin")
description.set("Kotlin extensions for javax.money (Moneta) JSR 354")
url.set("https://github.com/hiddewie/money-kotlin")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("hiddewie")
name.set("Hidde Wieringa")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:git://github.com:hiddewie/money-kotlin.git")
developerConnection.set("scm:git:ssh://github.com:hiddewie/money-kotlin.git")
url.set("https://github.com/hiddewie/money-kotlin/tree/master")
}
}
from(components["java"])
}
}
}
signing {
sign(publishing.publications)
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}