You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.7 KiB
70 lines
1.7 KiB
plugins {
|
|
id("java")
|
|
id("org.jetbrains.kotlin.jvm") version "1.9.24"
|
|
id("org.jetbrains.intellij") version "1.17.3"
|
|
}
|
|
|
|
group = "com.plexworlds"
|
|
version = "1.1"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("org.projectlombok:lombok:1.18.38")
|
|
implementation("io.github.ollama4j:ollama4j:1.0.100")
|
|
implementation("org.slf4j:slf4j-jdk14:2.1.0-alpha1")
|
|
implementation("com.google.guava:guava:33.4.8-jre")
|
|
implementation("dev.langchain4j:langchain4j:0.36.2")
|
|
implementation("org.apache.commons:commons-lang3:3.17.0")
|
|
testImplementation(kotlin("test"))
|
|
testImplementation(kotlin("test-junit"))
|
|
}
|
|
|
|
// Configure Gradle IntelliJ Plugin
|
|
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
|
|
intellij {
|
|
version.set("2024.1.7")
|
|
type.set("IC") // Target IDE Platform
|
|
|
|
plugins.set(listOf(/* Plugin Dependencies */))
|
|
}
|
|
|
|
tasks {
|
|
// Set the JVM compatibility versions
|
|
withType<JavaCompile> {
|
|
sourceCompatibility = "17"
|
|
targetCompatibility = "17"
|
|
}
|
|
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
kotlinOptions.jvmTarget = "17"
|
|
}
|
|
|
|
patchPluginXml {
|
|
sinceBuild.set("233")
|
|
untilBuild.set("242.*")
|
|
}
|
|
|
|
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"))
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes["Implementation-Title"] = "Local Llama Link"
|
|
attributes["Implementation-Version"] = version
|
|
}
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
from({
|
|
configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) }
|
|
})
|
|
}
|
|
}
|