Repository navigation
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
89 lines (74 loc) · 2.14 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
89 lines (74 loc) · 2.14 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
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
import groovy.lang.Closure
plugins {
kotlin("jvm") version "2.4.21"
id("org.jetbrains.dokka") version "2.3.0"
`maven-publish`
signing
id("com.vanniktech.maven.publish") version "0.37.0"
id("com.palantir.git-version") version "5.2.0"
}
group = "cn.elytra"
@Suppress("UNCHECKED_CAST")
val gitVersion = extra.get("gitVersion") as Closure<String>
try {
version = gitVersion()
} catch (e: Exception) {
logger.error("Failed to get version from git")
e.printStackTrace()
}
repositories {
mavenCentral()
}
dependencies {
api(libs.bson)
implementation(libs.exposed.core)
implementation(libs.exposed.dao)
testImplementation(libs.exposed.jdbc)
testImplementation(libs.h2)
testImplementation(libs.slf4j.jdk14)
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
// run tests in Java 25 for H2 (compiled by 11)
javaLauncher =
javaToolchains.launcherFor {
languageVersion.set(JavaLanguageVersion.of(25))
}
}
java {
withSourcesJar()
}
kotlin {
jvmToolchain(8)
explicitApi()
}
mavenPublishing {
publishToMavenCentral(automaticRelease = true)
signAllPublications()
coordinates("cn.elytra", "exposed-object-id", "${project.version}".removePrefix("v"))
pom {
name = "Exposed ObjectId Extension"
description = "Add ObjectId column type and entity types."
inceptionYear = "2025"
url = "https://github.com/ElytraServers/Exposed-ObjectId"
licenses {
license {
name = "Apache-2.0 License"
url = "https://github.com/ElytraServers/Exposed-ObjectId/blob/master/LICENSE"
}
}
developers {
developer {
id = "taskeren"
name = "Taskeren"
url = "https://github.com/Taskeren"
}
}
scm {
url = "https://github.com/ElytraServers/Exposed-ObjectId"
connection = "scm:git:git://github.com/ElytraServers/Exposed-ObjectId.git"
developerConnection = "scm:git:ssh://github.com/ElytraServers/Exposed-ObjectId.git"
}
}
}