krontab/build.gradle

148 lines
3.7 KiB
Groovy
Raw Normal View History

2019-05-21 10:14:09 +00:00
buildscript {
repositories {
mavenLocal()
2021-07-29 13:33:35 +00:00
// jcenter()
2019-05-21 10:14:09 +00:00
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"
classpath "org.jetbrains.kotlin:kotlin-serialization:$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"
2023-04-24 18:15:13 +00:00
classpath "com.android.tools.build:gradle:$android_gradle_version"
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"
id "org.jetbrains.kotlin.plugin.serialization" 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-04-20 11:24:33 +00:00
// temporal crutch until legacy tests will be stabled or legacy target will be removed
allprojects {
if (it != rootProject.findProject("docs")) {
tasks.whenTaskAdded { task ->
if(task.name == "jsLegacyBrowserTest" || task.name == "jsLegacyNodeTest") {
task.enabled = false
}
}
}
}
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()
2021-07-29 13:35:07 +00:00
// jcenter()
2019-05-21 10:14:09 +00:00
mavenCentral()
2021-07-29 13:35:07 +00:00
// 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()
js(IR) {
2020-08-22 15:36:55 +00:00
browser()
nodejs()
}
2021-01-02 16:43:32 +00:00
android {
publishAllLibraryVariants()
}
2023-03-18 06:23:53 +00:00
linuxX64()
mingwX64()
2023-10-22 19:26:53 +00:00
linuxArm64()
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"
api "org.jetbrains.kotlinx:kotlinx-serialization-core:$kotlin_serialization_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')
2023-03-18 06:23:53 +00:00
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$kotlin_coroutines_version"
2019-11-20 04:13:24 +00:00
}
}
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
}
}
2023-08-09 06:35:13 +00:00
androidUnitTest {
2021-01-02 16:43:32 +00:00
dependencies {
implementation kotlin('test-junit')
}
}
}
}
apply plugin: 'com.getkeepsafe.dexcount'
android {
compileSdk "$android_compileSdkVersion".toInteger()
2023-11-02 17:27:53 +00:00
buildToolsVersion = "$android_buildToolsVersion"
namespace "${group}.${project.name}"
2021-01-02 16:43:32 +00:00
defaultConfig {
minSdkVersion "$android_minSdkVersion".toInteger()
targetSdkVersion "$android_compileSdkVersion".toInteger()
versionCode "${android_code_version}".toInteger()
versionName "$version"
}
buildTypes {
release {
minifyEnabled false
}
debug {
debuggable true
}
}
compileOptions {
2023-11-02 17:27:53 +00:00
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
2021-01-02 16:43:32 +00:00
}
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
}
}
2021-09-23 07:18:40 +00:00
java {
2023-11-02 17:27:53 +00:00
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
2021-09-23 07:18:40 +00:00
}