krontab/build.gradle

127 lines
2.9 KiB
Groovy
Raw Normal View History

2019-05-21 10:14:09 +00:00
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
2021-01-02 16:43:32 +00:00
google()
2019-05-21 10:14:09 +00:00
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
2020-10-08 09:24:34 +00:00
classpath "com.github.breadmoirai:github-release:$github_release_plugin_version"
2021-01-02 16:43:32 +00:00
classpath "com.getkeepsafe.dexcount:dexcount-gradle-plugin:$dexcount_version"
classpath 'com.android.tools.build:gradle:4.0.2'
2019-05-21 10:14:09 +00:00
}
}
2019-11-20 04:13:24 +00:00
plugins {
id "org.jetbrains.kotlin.multiplatform" version "$kotlin_version"
2020-06-03 14:10:06 +00:00
id "org.jetbrains.dokka" version "$dokka_version"
2019-11-20 04:13:24 +00:00
}
2021-01-02 16:43:32 +00:00
apply plugin: "com.android.library"
2019-11-20 04:13:24 +00:00
2021-01-02 16:43:32 +00:00
project.version = "$version"
2020-11-21 08:58:19 +00:00
project.group = "dev.inmo"
2019-11-20 04:13:24 +00:00
apply from: "publish.gradle"
2020-10-08 09:24:34 +00:00
apply from: "github_release.gradle"
2019-05-21 10:14:09 +00:00
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven { url "https://kotlin.bintray.com/kotlinx" }
2021-01-02 16:43:32 +00:00
google()
2019-05-21 10:14:09 +00:00
}
2020-06-03 14:10:06 +00:00
apply from: './dokka.gradle'
2019-05-21 10:14:09 +00:00
kotlin {
2019-11-19 19:36:10 +00:00
jvm()
2020-08-22 15:36:55 +00:00
js(BOTH) {
browser()
nodejs()
}
2021-01-02 16:43:32 +00:00
android {
publishAllLibraryVariants()
}
2020-08-22 15:36:55 +00:00
2019-11-20 04:13:24 +00:00
2019-05-21 10:14:09 +00:00
sourceSets {
commonMain {
dependencies {
2019-11-20 04:13:24 +00:00
implementation kotlin('stdlib')
2020-08-22 15:36:55 +00:00
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version"
2019-10-04 17:47:20 +00:00
2019-10-08 17:42:50 +00:00
api "com.soywiz.korlibs.klock:klock:$klockVersion"
2019-05-23 06:42:38 +00:00
}
}
2021-01-02 16:43:32 +00:00
androidMain {
dependencies {
api "androidx.work:work-runtime-ktx:$androidx_work_version"
}
}
2019-11-20 04:13:24 +00:00
commonTest {
2019-10-05 18:21:00 +00:00
dependencies {
2019-11-20 04:13:24 +00:00
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jvmTest {
dependencies {
implementation kotlin('test-junit')
2019-10-05 18:21:00 +00:00
}
}
2020-11-21 09:04:34 +00:00
jsTest {
2019-11-27 13:06:27 +00:00
dependencies {
2020-08-22 15:36:55 +00:00
implementation kotlin('test-js')
2019-11-27 13:06:27 +00:00
}
}
2021-01-02 16:43:32 +00:00
androidTest {
dependencies {
implementation kotlin('test-junit')
}
}
}
}
apply plugin: 'com.getkeepsafe.dexcount'
android {
compileSdkVersion "$android_compileSdkVersion".toInteger()
buildToolsVersion "$android_buildToolsVersion"
defaultConfig {
minSdkVersion "$android_minSdkVersion".toInteger()
targetSdkVersion "$android_compileSdkVersion".toInteger()
versionCode "${android_code_version}".toInteger()
versionName "$version"
}
buildTypes {
release {
minifyEnabled false
}
debug {
debuggable true
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
2021-01-02 16:56:35 +00:00
test {
java.srcDir file("src/jvmTest")
}
2019-05-21 10:14:09 +00:00
}
}