This repository has been archived by the owner on Mar 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
70 lines (59 loc) · 1.72 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
plugins {
java
`java-library`
`maven-publish`
signing
}
group = "com.hpfxd.discordcommands"
version = "1.0.0"
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains:annotations:16.0.2")
implementation("software.pando.crypto:salty-coffee:1.0.4")
implementation("com.fasterxml.jackson.core:jackson-databind:2.13.0-rc1")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.3.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.3.1")
}
tasks.test {
useJUnitPlatform()
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
versionMapping {
usage("java-api") {
fromResolutionOf("runtimeClasspath")
}
}
pom {
url.set("https://hpfxd.com/")
developers {
developer {
id.set("hpfxd")
name.set("Nate")
email.set("me@hpfxd.com")
}
}
}
}
}
repositories {
maven {
name = "hpfxd-repo"
val releasesRepoUrl = uri("https://repo.hpfxd.com/releases/")
val snapshotsRepoUrl = uri("https://repo.hpfxd.com/snapshots/")
url = if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
credentials {
username = property("repository.hpfxd.username") as String
password = property("repository.hpfxd.password") as String
}
}
}
}
signing {
sign(publishing.publications["mavenJava"])
useGpgCmd()
}