Skip to content

Commit

Permalink
refactor: initial refactor to move non-UI code to a core module
Browse files Browse the repository at this point in the history
Created a new core module and moved initial set of classes that did not cause breakage. This is the first iteration of the refactor, with more commits to follow to complete the move.

Signed-off-by: Sun S D Tan <[email protected]>
  • Loading branch information
sunix committed Jun 20, 2024
1 parent 7642e6e commit d83f7a6
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 d83f7a6

Please sign in to comment.