SNRK-58: Add gradle files to new subproject

This commit is contained in:
Kirill Grachev 2023-04-22 17:10:23 +03:00
parent 0dad4cd923
commit a92f9673ac
4 changed files with 39 additions and 0 deletions

View File

@ -43,4 +43,5 @@ include(
":snark-html",
":snark-ktor",
":snark-storage-driver",
":snark-document-builder",
)

View File

@ -0,0 +1,15 @@
plugins {
id("space.kscience.gradle.jvm")
`maven-publish`
}
val coroutinesVersion = space.kscience.gradle.KScienceVersions.coroutinesVersion
val jacksonVersion = "2.14.2"
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
implementation(project(":snark-storage-driver"))
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonVersion")
}

View File

@ -0,0 +1,12 @@
package hello
import com.fasterxml.jackson.core.io.BigDecimalParser
import space.kscience.snark.storage.*
import space.kscience.snark.storage.local.LocalDirectory
import java.nio.file.Path
public suspend fun doSomethingEssential() {
val dir: Directory = LocalDirectory(".")
dir.get("notexists")
}

View File

@ -0,0 +1,11 @@
package hello
import org.junit.jupiter.api.Test
import kotlinx.coroutines.runBlocking
class SomeTest {
@Test
fun testEssential() = runBlocking {
doSomethingEssential()
}
}