-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
84 lines (74 loc) · 2.77 KB
/
build.gradle
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
plugins {
id 'java'
id 'com.github.node-gradle.node' version '7.0.1'
id 'io.spring.dependency-management' version '1.1.4'
id 'org.barfuin.gradle.taskinfo' version '2.1.0'
id 'org.springframework.boot' version '3.2.0'
}
group = 'com.egineering.ai'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '17'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
maven {
name = "Spring Snapshots"
url = "https://repo.spring.io/snapshot"
}
}
dependencies {
implementation 'dev.langchain4j:langchain4j:0.25.0'
implementation 'dev.langchain4j:langchain4j-chroma:0.25.0'
implementation 'dev.langchain4j:langchain4j-embeddings-all-minilm-l6-v2:0.25.0'
implementation 'dev.langchain4j:langchain4j-ollama:0.25.0'
implementation 'dev.langchain4j:langchain4j-open-ai-spring-boot-starter:0.25.0'
implementation 'dev.langchain4j:langchain4j-document-parser-apache-pdfbox:0.25.0'
implementation 'io.github.amikos-tech:chromadb-java-client:0.1.2'
implementation 'org.liquibase:liquibase-core'
implementation 'org.liquibase.ext:liquibase-mongodb:4.24.0'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
// implementation 'org.springframework.experimental.ai:spring-ai-openai-spring-boot-starter:0.7.1-SNAPSHOT'
// implementation 'org.springframework.experimental.ai:spring-ai-pdf-document-reader:0.7.1-SNAPSHOT'
// implementation 'org.springframework.experimental.ai:spring-ai-chroma-store:0.7.1-SNAPSHOT'
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-websocket'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'org.postgresql:postgresql'
annotationProcessor 'org.projectlombok:lombok'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
configurations.implementation {
exclude group: 'commons-logging', module: 'commons-logging'
}
tasks.named('test') {
useJUnitPlatform()
}
tasks.register('cleanWebapp') {
delete file("${projectDir}/src/main/webapp/dist")
def staticResources = file("${projectDir}/src/main/resources/static")
if (staticResources.exists()) delete staticResources.listFiles()
}
clean.dependsOn cleanWebapp
tasks.register('buildWebapp', NpmTask) {
args = ['run', 'build']
def workingDir = "${projectDir}/src/main/webapp"
execOverrides {
it.workingDir = workingDir
}
delete file("${projectDir}/src/main/resources/static").listFiles()
doLast {
copy {
from fileTree("${workingDir}/dist/webapp/browser").include('**/*')
into "${projectDir}/src/main/resources/static"
}
}
}