-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
73 lines (63 loc) · 1.8 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
73 lines (63 loc) · 1.8 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
// cachly Java SDK – Gradle build (alternative to pom.xml)
// Use either `mvn package` or `./gradlew build` – both work.
plugins {
`java-library`
`maven-publish`
}
group = "dev.cachly"
version = "0.1.0-beta.1"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
withJavadocJar()
withSourcesJar()
}
repositories {
mavenCentral()
}
dependencies {
// Redis client
api("redis.clients:jedis:5.1.0")
// JSON serialization
api("com.fasterxml.jackson.core:jackson-databind:2.17.0")
// Test
testImplementation(platform("org.junit:junit-bom:5.10.2"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.mockito:mockito-core:5.11.0")
}
tasks.test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
publishing {
publications {
create<MavenPublication>("maven") {
artifactId = "cachly-java"
from(components["java"])
pom {
name.set("cachly-java")
description.set("Official Java SDK for cachly.dev – Managed Valkey/Redis cache with semantic AI caching")
url.set("https://cachly.dev")
licenses {
license {
name.set("MIT License")
url.set("https://opensource.org/licenses/MIT")
}
}
developers {
developer {
id.set("cachlydev")
name.set("cachly.dev")
email.set("hello@cachly.dev")
}
}
scm {
url.set("https://github.com/cachlydev/sdk-java")
}
}
}
}
}