Skip to content

Commit

Permalink
Merge pull request #100 from sunix/init-core-module
Browse files Browse the repository at this point in the history
refactor: initial refactor to move non-UI code to a core module
  • Loading branch information
stephanj authored Jun 21, 2024
2 parents bc4ed71 + d83f7a6 commit 2a156cd
Show file tree
Hide file tree
Showing 19 changed files with 43 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ repositories {
}

dependencies {
// Add the dependencies for the core module
implementation("com.devoxx.genie:core:0.1.16")

implementation("dev.langchain4j:langchain4j:0.31.0")
implementation("dev.langchain4j:langchain4j-ollama:0.31.0")
implementation("dev.langchain4j:langchain4j-local-ai:0.31.0")
Expand Down
38 changes: 38 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
plugins {
java
}

group = "com.devoxx.genie"
version = "0.1.16"

repositories {
mavenCentral()
}

dependencies {
implementation("dev.langchain4j:langchain4j:0.31.0")
implementation("dev.langchain4j:langchain4j-ollama:0.31.0")
implementation("dev.langchain4j:langchain4j-local-ai:0.31.0")
implementation("dev.langchain4j:langchain4j-open-ai:0.31.0")
implementation("dev.langchain4j:langchain4j-anthropic:0.31.0")
implementation("dev.langchain4j:langchain4j-mistral-ai:0.31.0")
implementation("dev.langchain4j:langchain4j-web-search-engine-google-custom:0.31.0")
implementation("dev.langchain4j:langchain4j-web-search-engine-tavily:0.31.0")

implementation("org.commonmark:commonmark:0.22.0")

compileOnly("org.projectlombok:lombok:1.18.32")
annotationProcessor("org.projectlombok:lombok:1.18.32")

testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.0-M1")
testImplementation("org.mockito:mockito-core:5.11.0")
testImplementation("org.mockito:mockito-inline:5.2.0")
testImplementation("org.assertj:assertj-core:3.25.3")

testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.2")
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ plugins {
}

rootProject.name = "DevoxxGenie"

includeBuild("core")

0 comments on commit 2a156cd

Please sign in to comment.