-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
53 lines (45 loc) · 1.57 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
val kotlinVersion = "2.0.20"
val javaVersion = 21
val javafxVersion = "22.0.2"
plugins {
kotlin("jvm") version "2.0.20"
id("org.openjfx.javafxplugin") version "0.0.14"
id("org.jetbrains.kotlin.plugin.spring") version "2.0.20"
id("org.springframework.boot") version "3.3.3"
application
}
repositories {
mavenCentral()
maven { url = uri("https://repo.spring.io/milestone") }
maven { url = uri("https://repo.spring.io/snapshot") }
}
dependencies {
implementation(kotlin("stdlib"))
implementation("org.springframework.boot:spring-boot-starter") {
exclude(group = "org.springframework.boot", module = "spring-boot-starter-web")
exclude(group = "org.springframework.boot", module = "spring-boot-starter-webflux")
}
implementation(platform("org.springframework.ai:spring-ai-bom:1.0.0-SNAPSHOT"))
implementation("org.openjfx:javafx-controls:17.0.2")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.0")
implementation("org.springframework.ai:spring-ai-openai")
implementation("org.springframework.ai:spring-ai-openai-spring-boot-starter")
}
javafx {
version = javafxVersion
modules = listOf("javafx.controls")
}
application {
mainClass.set("com.appga.contentcraft.ApplicationKt")
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
compilerOptions {
jvmTarget.set(JvmTarget.fromTarget(javaVersion.toString()))
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(javaVersion))
}
}