mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2024-11-10 18:33:54 +00:00
135 lines
3.2 KiB
Groovy
135 lines
3.2 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenLocal()
|
|
jcenter()
|
|
mavenCentral()
|
|
google()
|
|
}
|
|
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
classpath "com.github.breadmoirai:github-release:$github_release_plugin_version"
|
|
classpath "com.getkeepsafe.dexcount:dexcount-gradle-plugin:$dexcount_version"
|
|
classpath 'com.android.tools.build:gradle:4.1.3'
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id "org.jetbrains.kotlin.multiplatform" version "$kotlin_version"
|
|
id "org.jetbrains.dokka" version "$dokka_version"
|
|
}
|
|
|
|
// 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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
apply plugin: "com.android.library"
|
|
|
|
project.version = "$version"
|
|
project.group = "dev.inmo"
|
|
|
|
apply from: "publish.gradle"
|
|
apply from: "github_release.gradle"
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
jcenter()
|
|
mavenCentral()
|
|
maven { url "https://kotlin.bintray.com/kotlinx" }
|
|
google()
|
|
}
|
|
|
|
apply from: './dokka.gradle'
|
|
|
|
kotlin {
|
|
jvm()
|
|
js(BOTH) {
|
|
browser()
|
|
nodejs()
|
|
}
|
|
android {
|
|
publishAllLibraryVariants()
|
|
}
|
|
|
|
|
|
sourceSets {
|
|
commonMain {
|
|
dependencies {
|
|
implementation kotlin('stdlib')
|
|
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version"
|
|
|
|
api "com.soywiz.korlibs.klock:klock:$klockVersion"
|
|
}
|
|
}
|
|
|
|
androidMain {
|
|
dependencies {
|
|
api "androidx.work:work-runtime-ktx:$androidx_work_version"
|
|
}
|
|
}
|
|
|
|
commonTest {
|
|
dependencies {
|
|
implementation kotlin('test-common')
|
|
implementation kotlin('test-annotations-common')
|
|
}
|
|
}
|
|
jvmTest {
|
|
dependencies {
|
|
implementation kotlin('test-junit')
|
|
}
|
|
}
|
|
jsTest {
|
|
dependencies {
|
|
implementation kotlin('test-js')
|
|
}
|
|
}
|
|
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
|
|
}
|
|
|
|
sourceSets {
|
|
main.java.srcDirs += 'src/main/kotlin'
|
|
test {
|
|
java.srcDir file("src/jvmTest")
|
|
}
|
|
}
|
|
}
|