core/postssystem.core/build.gradle

86 lines
2.7 KiB
Groovy
Raw Normal View History

2019-10-16 17:46:15 +00:00
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$gradle_bintray_plugin_version"
}
}
2019-11-19 19:36:26 +00:00
plugins {
id "org.jetbrains.kotlin.multiplatform" version "$kotlin_version"
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version"
}
2020-04-10 06:54:06 +00:00
project.version = "$core_version"
2020-01-09 11:26:40 +00:00
project.group = "com.insanusmokrassar"
2019-11-19 19:36:26 +00:00
apply from: "publish.gradle"
2019-10-16 17:46:15 +00:00
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven { url "https://kotlin.bintray.com/kotlinx" }
}
2019-11-05 05:26:42 +00:00
kotlin {
2019-11-19 19:36:26 +00:00
jvm()
2019-11-24 18:40:05 +00:00
js()
2019-11-05 05:26:42 +00:00
sourceSets {
commonMain {
dependencies {
2019-11-19 19:36:26 +00:00
implementation kotlin('stdlib')
2019-11-05 05:26:42 +00:00
api "org.jetbrains.kotlinx:kotlinx-coroutines-core-common:$kotlin_coroutines_version"
api "org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:$kotlin_serialisation_runtime_version"
2019-10-16 17:46:15 +00:00
2019-11-05 05:26:42 +00:00
api "com.soywiz.korlibs.klock:klock:$klockVersion"
2019-11-05 06:14:36 +00:00
api "com.benasher44:uuid:$uuidVersion"
2020-07-30 13:40:33 +00:00
if ((project.hasProperty('RELEASE_MODE') && project.property('RELEASE_MODE') == "true") || System.getenv('RELEASE_MODE') == "true") {
api "com.insanusmokrassar:postssystem.utils.repos:$core_version"
} else {
api project(":postssystem.utils.repos")
}
2019-11-05 05:26:42 +00:00
}
}
2019-11-20 04:03:16 +00:00
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
2019-11-19 19:36:26 +00:00
jvmMain {
2019-11-05 05:26:42 +00:00
dependencies {
2019-11-19 19:36:26 +00:00
implementation kotlin('stdlib-jdk8')
2019-11-05 05:26:42 +00:00
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version"
api "org.jetbrains.kotlinx:kotlinx-serialization-runtime:$kotlin_serialisation_runtime_version"
}
}
2019-11-20 04:03:16 +00:00
jvmTest {
dependencies {
implementation kotlin('test-junit')
}
}
2019-11-24 18:40:05 +00:00
jsMain {
dependencies {
implementation kotlin('stdlib-js')
api "org.jetbrains.kotlinx:kotlinx-coroutines-core-js:$kotlin_coroutines_version"
api "org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:$kotlin_serialisation_runtime_version"
}
}
jsTest {
dependencies {
2020-07-30 09:28:11 +00:00
implementation kotlin('test-js')
implementation kotlin('test-junit')
}
}
2019-10-16 17:46:15 +00:00
}
}