Skip to content

Commit

Permalink
add web code
Browse files Browse the repository at this point in the history
  • Loading branch information
wadoon committed Feb 25, 2024
1 parent 432455e commit 105f2d1
Show file tree
Hide file tree
Showing 9 changed files with 444 additions and 0 deletions.
1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jupiter = "5.12.0"
clickt = "4.2.2"
jdk = "21"
kotlin = "1.9.20"
ktor = "1.6.8"

[libraries]
clickt = { module = "com.github.ajalt.clikt:clikt", version.ref = "clickt" }
Expand All @@ -30,5 +31,9 @@ okhttp = { module = "com.squareup.okhttp3:okhttp", version = "4.9.1" }
mockito = { module = "org.mockito:mockito-inline", version = "" }
kotlin-gradle = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }

ktor-core = { module = "io.ktor:ktor-server-core", version.ref = "ktor" }
ktor-netty = { module = "io.ktor:ktor-server-netty", version.ref = "ktor" }
ktor-html = { module = "io.ktor:ktor-html-builder", version.ref = "ktor" }

[plugins]
jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
4 changes: 4 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.5.0"
}
rootProject.name = "jml-tools"
include("prettyprinting")
include("lint")
Expand All @@ -10,3 +13,4 @@ include("utils")
include("xpath")
include("cli")
include("lsp")
include("web")
20 changes: 20 additions & 0 deletions web/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
plugins {
id("standard-kotlin")
}

group = "io.github.jmltoolkit"

repositories {
mavenCentral()
}

dependencies {
testImplementation("org.jetbrains.kotlin:kotlin-test")
api(libs.jmlcore)
api(libs.jmlsymbol)

implementation(libs.ktor.core)
implementation(libs.ktor.html)
implementation(libs.ktor.netty)
implementation(libs.logback)
}
Loading

0 comments on commit 105f2d1

Please sign in to comment.