2019-11-19 09:48:42 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
mavenCentral()
|
2021-01-20 06:02:49 +00:00
|
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
2019-11-19 09:48:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
|
2020-11-11 17:37:39 +00:00
|
|
|
classpath "com.github.breadmoirai:github-release:$github_release_plugin_version"
|
2019-11-19 09:48:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-20 04:04:03 +00:00
|
|
|
plugins {
|
|
|
|
id "org.jetbrains.kotlin.multiplatform" version "$kotlin_version"
|
|
|
|
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version"
|
2021-01-20 06:02:49 +00:00
|
|
|
id "org.jetbrains.kotlin.kapt" version "$kotlin_version"
|
2019-11-20 04:04:03 +00:00
|
|
|
}
|
|
|
|
|
2020-11-11 17:42:09 +00:00
|
|
|
project.version = "$version"
|
|
|
|
project.group = "$group"
|
2019-11-19 09:48:42 +00:00
|
|
|
|
2019-11-20 14:46:32 +00:00
|
|
|
apply from: "publish.gradle"
|
|
|
|
|
2019-11-19 09:48:42 +00:00
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
jcenter()
|
|
|
|
mavenCentral()
|
|
|
|
maven { url "https://kotlin.bintray.com/kotlinx" }
|
2021-01-20 06:02:49 +00:00
|
|
|
maven { url 'https://jitpack.io' }
|
2019-11-19 09:48:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
2019-11-20 04:04:03 +00:00
|
|
|
jvm()
|
2019-11-19 09:48:42 +00:00
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
commonMain {
|
|
|
|
dependencies {
|
2019-11-20 04:04:03 +00:00
|
|
|
implementation kotlin('stdlib')
|
2020-02-13 06:56:04 +00:00
|
|
|
api kotlin('reflect')
|
2020-11-11 17:59:59 +00:00
|
|
|
api "org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlin_serialisation_runtime_version"
|
2019-11-19 09:48:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
commonTest {
|
|
|
|
dependencies {
|
2019-11-20 04:04:03 +00:00
|
|
|
implementation kotlin('test-common')
|
|
|
|
implementation kotlin('test-annotations-common')
|
2019-11-19 09:48:42 +00:00
|
|
|
}
|
|
|
|
}
|
2020-11-11 18:44:19 +00:00
|
|
|
jvmMain {
|
|
|
|
dependencies {
|
2021-01-20 06:02:49 +00:00
|
|
|
api "com.github.matfax.klassindex:library:$klassindex_version"
|
2020-11-11 18:44:19 +00:00
|
|
|
}
|
|
|
|
}
|
2019-11-20 04:04:03 +00:00
|
|
|
jvmTest {
|
2019-11-19 09:48:42 +00:00
|
|
|
dependencies {
|
2019-11-20 04:04:03 +00:00
|
|
|
implementation kotlin('test-junit')
|
2019-11-19 09:48:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-01-20 06:02:49 +00:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
kapt "com.github.matfax.klassindex:processor:$klassindex_version"
|
|
|
|
}
|