Skip to content

Commit 2307b79

Browse files
authored
Merge pull request #12 from devchat-ai/migrate-to-kotlin
Migrate to kotlin
2 parents 807740e + b716fc7 commit 2307b79

89 files changed

Lines changed: 2541 additions & 2920 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.idea/kotlinc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle.kts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id("java")
33
id("org.jetbrains.intellij") version "1.16.0"
44
id("org.jetbrains.changelog") version "2.2.0"
5+
kotlin("jvm") version "1.9.21"
56
}
67

78
group = "ai.devchat"
@@ -14,6 +15,7 @@ repositories {
1415
dependencies {
1516
implementation("com.alibaba:fastjson:2.0.42")
1617
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.16.0")
18+
implementation(kotlin("stdlib-jdk8"))
1719
}
1820

1921
// Configure Gradle Changelog Plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin
@@ -33,8 +35,6 @@ intellij {
3335
tasks {
3436
// Set the JVM compatibility versions
3537
withType<JavaCompile> {
36-
sourceCompatibility = "17"
37-
targetCompatibility = "17"
3838
}
3939

4040
patchPluginXml {
@@ -52,3 +52,6 @@ tasks {
5252
token.set(System.getenv("PUBLISH_TOKEN"))
5353
}
5454
}
55+
kotlin {
56+
jvmToolchain(17)
57+
}

settings.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
plugins {
2+
id("org.gradle.toolchains.foojay-resolver-convention") version "0.5.0"
3+
}
14
rootProject.name = "devchat"

src/main/java/ai/devchat/cli/DevChatConfig.java

Lines changed: 0 additions & 124 deletions
This file was deleted.

src/main/java/ai/devchat/cli/DevChatInstallationManager.java

Lines changed: 0 additions & 206 deletions
This file was deleted.

0 commit comments

Comments
 (0)