SNRK-58: Add gradle files to new subproject
This commit is contained in:
parent
0dad4cd923
commit
a92f9673ac
@ -43,4 +43,5 @@ include(
|
|||||||
":snark-html",
|
":snark-html",
|
||||||
":snark-ktor",
|
":snark-ktor",
|
||||||
":snark-storage-driver",
|
":snark-storage-driver",
|
||||||
|
":snark-document-builder",
|
||||||
)
|
)
|
15
snark-document-builder/build.gradle.kts
Normal file
15
snark-document-builder/build.gradle.kts
Normal 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")
|
||||||
|
}
|
12
snark-document-builder/src/main/kotlin/Hello.kt
Normal file
12
snark-document-builder/src/main/kotlin/Hello.kt
Normal 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")
|
||||||
|
}
|
11
snark-document-builder/src/test/kotlin/Hello.kt
Normal file
11
snark-document-builder/src/test/kotlin/Hello.kt
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
package hello
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test
|
||||||
|
import kotlinx.coroutines.runBlocking
|
||||||
|
|
||||||
|
class SomeTest {
|
||||||
|
@Test
|
||||||
|
fun testEssential() = runBlocking {
|
||||||
|
doSomethingEssential()
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user