-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
96 lines (79 loc) · 2.41 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
91
92
93
94
95
96
import net.thebugmc.gradle.sonatypepublisher.PublishingType
plugins {
id("java-library")
id("net.thebugmc.gradle.sonatype-central-portal-publisher").version("1.2.3")
kotlin("jvm")
id("com.google.devtools.ksp").version("2.1.0-1.0.29")
id("dev.kordex.gradle.kordex") version "1.6.1"
}
group = "net.dungeon-hub.api"
val artifactId = "model"
version = "0.5.4"
description = "The model classes that are used in the Dungeon Hub API."
kordEx {
kordExVersion = libs.kord.extensions.get().version
jvmTarget = 17
i18n {
classPackage = "net.dungeonhub.api.model.i18n"
translationBundle = "dh-api.strings"
}
}
dependencies {
//Moshi, the JSON library
api("com.squareup.moshi:moshi-kotlin:1.15.2")
ksp("com.squareup.moshi:moshi-kotlin-codegen:1.15.2")
//Gson, used for compatibility purposes
api("com.google.code.gson:gson:2.11.0")
//Used frameworks for compatible classes
implementation("org.springframework:spring-web:6.2.3")
//Tests
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testImplementation(kotlin("test"))
}
centralPortal {
name = artifactId
publishingType = PublishingType.USER_MANAGED
pom {
name = artifactId
description = project.description
url = "https://github.com/dungeon-hub/dungeon-hub-api"
organization {
name = "Dungeon Hub"
url = "https://dungeon-hub.net/"
}
scm {
url = "https://github.com/dungeon-hub/dungeon-hub-api"
connection = "scm:git://github.com:dungeon-hub/dungeon-hub-api.git"
developerConnection = "scm:git://github.com:dungeon-hub/dungeon-hub-api.git"
}
developers {
developer {
id = "taubsie"
name = "Taubsie"
email = "[email protected]"
url = "https://github.com/Taubsie/"
organizationUrl = "https://dungeon-hub.net/"
}
}
licenses {
license {
name = "GPL-3.0"
url = "https://www.gnu.org/licenses/gpl-3.0"
distribution = "https://www.gnu.org/licenses/gpl-3.0.txt"
}
}
}
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
compilerOptions {
freeCompilerArgs.add("-Xjvm-default=all")
}
}
java {
withJavadocJar()
withSourcesJar()
}