forked from carlrobertoh/llm-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
117 lines (106 loc) · 3.37 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
plugins {
`java-library`
`maven-publish`
signing
checkstyle
alias(libs.plugins.publish.plugin)
}
group = "ee.carlrobert"
version = "0.8.17"
repositories {
mavenCentral()
}
java {
withJavadocJar()
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
checkstyle {
toolVersion = libs.versions.checkstyle.get()
}
dependencies {
api(platform(libs.okhttp.bom))
api("com.squareup.okhttp3:okhttp")
api("com.squareup.okhttp3:okhttp-sse")
api("com.squareup.okhttp3:logging-interceptor")
implementation(platform(libs.slf4j.bom))
implementation("org.slf4j:slf4j-api")
implementation("org.slf4j:slf4j-simple")
implementation(platform(libs.jackson.bom))
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jdk8")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
testImplementation(platform(libs.junit.bom))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation(libs.commons.io)
testImplementation(libs.assertj.core)
testImplementation(libs.awaitility)
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
versionMapping {
usage("java-api") {
fromResolutionOf("runtimeClasspath")
}
usage("java-runtime") {
fromResolutionResult()
}
}
pom {
name.set("LLM Client")
description.set("Java http client wrapped around the OkHttp3 library")
url.set("https://github.com/carlrobertoh/llm-client")
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("linnupuu")
name.set("Carl-Robert Linnupuu")
email.set("[email protected]")
}
}
scm {
url.set("https://github.com/carlrobertoh/llm-client")
connection.set("scm:git://github.com/carlrobertoh/llm-client.git")
developerConnection.set("scm:git://github.com/carlrobertoh/llm-client.git")
}
}
}
}
}
signing {
val signingKey = (findProperty("signingKey") ?: "") as String
val signingPassword = (findProperty("signingPassword") ?: "") as String
useInMemoryPgpKeys(signingKey, signingPassword)
sign(publishing.publications["mavenJava"])
}
tasks {
test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
jar {
from(sourceSets["main"].output)
from(sourceSets["test"].output) {
include("**/http/**")
include("**/mixin/**")
include("**/util/**")
}
}
}