-
Notifications
You must be signed in to change notification settings - Fork 37
/
build.gradle.kts
130 lines (104 loc) · 3.99 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
118
119
120
121
122
123
124
125
126
127
128
129
130
import java.util.*
plugins {
java
id("org.jetbrains.intellij") version "1.17.2"
id("com.github.johnrengelman.shadow") version "8.1.1"
}
group = "com.devoxx.genie"
version = "0.4.6"
repositories {
mavenCentral()
}
tasks.register("updateProperties") {
doLast {
val projectVersion = version
val propertiesFile = file("src/main/resources/application.properties")
if (propertiesFile.exists()) {
val properties = Properties().apply {
load(propertiesFile.inputStream())
}
properties.setProperty("version", projectVersion.toString())
properties.store(propertiesFile.outputStream(), null)
} else {
println("application.properties file not found!")
}
}
}
tasks.named("buildPlugin") {
dependsOn("updateProperties")
}
dependencies {
val lg4j_version = "0.36.2"
// Add the dependencies for the core module
implementation(project(":core"))
implementation("dev.langchain4j:langchain4j:$lg4j_version")
implementation("dev.langchain4j:langchain4j-ollama:$lg4j_version")
implementation("dev.langchain4j:langchain4j-local-ai:$lg4j_version")
implementation("dev.langchain4j:langchain4j-open-ai:$lg4j_version")
implementation("dev.langchain4j:langchain4j-anthropic:$lg4j_version")
implementation("dev.langchain4j:langchain4j-mistral-ai:$lg4j_version")
implementation("dev.langchain4j:langchain4j-google-ai-gemini:$lg4j_version")
implementation("dev.langchain4j:langchain4j-web-search-engine-google-custom:$lg4j_version")
implementation("dev.langchain4j:langchain4j-web-search-engine-tavily:$lg4j_version")
implementation("dev.langchain4j:langchain4j-azure-open-ai:$lg4j_version")
implementation("dev.langchain4j:langchain4j-chroma:$lg4j_version")
implementation("com.github.docker-java:docker-java:3.4.0")
implementation("com.knuddels:jtokkit:1.0.0")
implementation("org.commonmark:commonmark:0.22.0")
// TDG : Add Log4j dependencies
implementation("org.apache.logging.log4j:log4j-api:2.22.1")
implementation("org.apache.logging.log4j:log4j-core:2.22.1")
// TDG : Add other TDG dependencies
implementation("org.junit.jupiter:junit-jupiter-api:5.11.3")
implementation("org.junit.jupiter:junit-jupiter-engine:5.11.3")
implementation("org.junit.platform:junit-platform-launcher:1.11.3")
compileOnly("org.projectlombok:lombok:1.18.34")
annotationProcessor("org.projectlombok:lombok:1.18.34")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.0-M2")
testImplementation("org.mockito:mockito-core:5.11.0")
testImplementation("org.mockito:mockito-inline:5.2.0")
testImplementation("org.assertj:assertj-core:3.26.0")
testImplementation("io.github.cdimascio:dotenv-java:3.0.0")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.10.3")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.11.0-M2")
}
// Configure Gradle IntelliJ Plugin
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
intellij {
version.set("2023.3.4")
type.set("IC")
}
tasks {
// Set the JVM compatibility versions
withType<JavaCompile> {
}
patchPluginXml {
sinceBuild.set("233")
untilBuild.set("243.*")
}
shadowJar {
mergeServiceFiles()
manifest {
attributes(
"Implementation-Title" to "DevoxxGenie",
"Implementation-Version" to version,
)
}
}
test {
useJUnitPlatform()
}
signPlugin {
certificateChain.set(System.getenv("CERTIFICATE_CHAIN"))
privateKey.set(System.getenv("PRIVATE_KEY"))
password.set(System.getenv("PRIVATE_KEY_PASSWORD"))
}
publishPlugin {
token.set(System.getenv("PUBLISH_TOKEN"))
}
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}