2022-11-11 02:22:26 +03:00
|
|
|
plugins {
|
2022-12-10 23:27:45 +03:00
|
|
|
kotlin("multiplatform") version "1.7.21"
|
|
|
|
kotlin("plugin.serialization") version "1.7.21"
|
2022-11-11 02:22:26 +03:00
|
|
|
`maven-publish`
|
|
|
|
}
|
|
|
|
|
2022-11-26 14:34:14 +03:00
|
|
|
val ktor_version="2.1.1"
|
|
|
|
val logback_version="1.2.10"
|
|
|
|
|
|
|
|
|
2022-11-11 02:22:26 +03:00
|
|
|
group = "net.sergeych"
|
2023-09-25 16:14:32 +03:00
|
|
|
version = "0.2.6-SNAPSHOT"
|
2022-11-11 02:22:26 +03:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
mavenLocal()
|
|
|
|
maven("https://maven.universablockchain.com")
|
|
|
|
}
|
|
|
|
|
|
|
|
//configurations.all {
|
|
|
|
// resolutionStrategy.cacheChangingModulesFor(30, "seconds")
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
jvm {
|
2023-09-25 16:14:32 +03:00
|
|
|
// compilations.all {
|
|
|
|
// kotlinOptions.jvmTarget = "1.8"
|
|
|
|
// }
|
2022-11-11 02:22:26 +03:00
|
|
|
withJava()
|
|
|
|
testRuns["test"].executionTask.configure {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
js(IR) {
|
|
|
|
browser {
|
|
|
|
commonWebpackConfig {
|
|
|
|
cssSupport.enabled = true
|
|
|
|
}
|
2022-12-02 23:32:58 +03:00
|
|
|
testTask {
|
|
|
|
useMocha {
|
|
|
|
timeout = "30000"
|
|
|
|
}
|
|
|
|
}
|
2022-11-11 02:22:26 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
sourceSets {
|
2023-01-19 13:42:12 +03:00
|
|
|
all {
|
|
|
|
languageSettings.optIn("kotlinx.serialization.ExperimentalSerializationApi")
|
|
|
|
}
|
2022-11-11 02:22:26 +03:00
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.3")
|
2023-09-25 16:14:32 +03:00
|
|
|
// api("net.sergeych:unikrypto:1.2.2-SNAPSHOT")
|
|
|
|
api("net.sergeych:parsec3:0.4.6")
|
2023-01-19 13:28:06 +03:00
|
|
|
api("net.sergeych:unikrypto:1.2.5")
|
2022-12-02 23:32:58 +03:00
|
|
|
}
|
2022-11-11 02:22:26 +03:00
|
|
|
}
|
|
|
|
val commonTest by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test"))
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4")
|
|
|
|
}
|
|
|
|
}
|
2022-12-09 13:51:00 +03:00
|
|
|
val jvmMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation("io.ktor:ktor-server-core:$ktor_version")
|
2022-12-10 23:44:56 +03:00
|
|
|
implementation("io.ktor:ktor-server-websockets-jvm:$ktor_version")
|
2022-12-09 13:51:00 +03:00
|
|
|
}
|
|
|
|
}
|
2022-11-26 14:34:14 +03:00
|
|
|
val jvmTest by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation("io.ktor:ktor-server-core:$ktor_version")
|
|
|
|
implementation("io.ktor:ktor-server-netty:$ktor_version")
|
|
|
|
implementation("ch.qos.logback:logback-classic:$logback_version")
|
|
|
|
}
|
|
|
|
}
|
2022-11-11 02:22:26 +03:00
|
|
|
val jsMain by getting
|
|
|
|
val jsTest by getting
|
|
|
|
}
|
2022-12-18 23:48:39 +03:00
|
|
|
publishing {
|
2022-12-17 03:36:21 +03:00
|
|
|
repositories {
|
|
|
|
maven {
|
2023-01-19 13:28:06 +03:00
|
|
|
val mavenUser: String by project
|
|
|
|
val mavenPassword: String by project
|
2022-12-17 03:36:21 +03:00
|
|
|
url = uri("https://maven.universablockchain.com/")
|
|
|
|
credentials {
|
2023-01-19 13:28:06 +03:00
|
|
|
username = mavenUser
|
|
|
|
password = mavenPassword
|
|
|
|
// username = System.getenv("maven_user")
|
|
|
|
// password = System.getenv("maven_password")
|
2022-12-17 03:36:21 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-11-11 02:22:26 +03:00
|
|
|
}
|