-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
61 lines (48 loc) · 1.4 KB
/
settings.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
pluginManagement {
repositories {
google()
mavenLocal()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
}
}
rootProject.name = "openai-kotlin"
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
plugins {
id("de.fayard.refreshVersions") version "0.60.5"
}
fun String.isNonStable(): Boolean {
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { uppercase().contains(it) }
val regex = "^[0-9,.v-]+(-r)?$".toRegex()
val isStable = stableKeyword || regex.matches(this)
return isStable.not()
}
refreshVersions {
rejectVersionIf {
candidate.value.isNonStable()
}
}
include(":common")
//include(":library")
include(":openai-client")
include(":openai-client:openai-client-core")
include(":openai-client:openai-client-darwin")
include(":openai-client:openai-client-cio")
include(":anthropic-client")
include(":anthropic-client:anthropic-client-core")
include(":anthropic-client:anthropic-client-darwin")
include(":openai-gateway")
include(":openai-gateway:openai-gateway-core")
include(":openai-gateway:openai-gateway-darwin")
include(":ollama-client")
include(":ollama-client:ollama-client-core")
include(":ollama-client:ollama-client-darwin")
include(":gemini-client")
include(":gemini-client:gemini-client-core")
include(":gemini-client:gemini-client-darwin")