2019-01-31 18:19:02 +03:00
|
|
|
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
|
|
|
|
|
2018-11-20 22:09:07 +03:00
|
|
|
buildscript {
|
2019-01-26 19:38:18 +03:00
|
|
|
val kotlinVersion: String by rootProject.extra("1.3.20")
|
|
|
|
val ioVersion: String by rootProject.extra("0.1.2")
|
|
|
|
val coroutinesVersion: String by rootProject.extra("1.1.1")
|
2018-11-20 22:09:07 +03:00
|
|
|
|
|
|
|
repositories {
|
2019-01-26 19:38:18 +03:00
|
|
|
//maven("https://dl.bintray.com/kotlin/kotlin-eap")
|
2018-11-20 22:09:07 +03:00
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2018-11-21 09:55:39 +03:00
|
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
|
2018-11-20 22:09:07 +03:00
|
|
|
classpath("org.jfrog.buildinfo:build-info-extractor-gradle:4+")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
plugins {
|
2019-01-04 18:12:28 +03:00
|
|
|
id("com.jfrog.artifactory") version "4.8.1" apply false
|
2018-12-11 17:25:55 +03:00
|
|
|
// id("org.jetbrains.kotlin.multiplatform") apply false
|
2018-11-20 22:09:07 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
apply(plugin = "maven-publish")
|
|
|
|
apply(plugin = "com.jfrog.artifactory")
|
|
|
|
|
|
|
|
group = "scientifik"
|
2019-02-02 18:16:25 +03:00
|
|
|
version = "0.0.3-dev-5"
|
2018-12-24 15:19:35 +03:00
|
|
|
|
2019-01-04 18:12:28 +03:00
|
|
|
repositories {
|
2019-01-31 18:19:02 +03:00
|
|
|
//maven("https://dl.bintray.com/kotlin/kotlin-eap")
|
2018-12-24 15:19:35 +03:00
|
|
|
jcenter()
|
|
|
|
}
|
2019-01-31 18:19:02 +03:00
|
|
|
|
|
|
|
extensions.findByType<KotlinMultiplatformExtension>()?.apply {
|
|
|
|
jvm {
|
|
|
|
compilations.all {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
targets.all {
|
|
|
|
sourceSets.all {
|
|
|
|
languageSettings.progressiveMode = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-11-20 22:09:07 +03:00
|
|
|
}
|
|
|
|
|
2019-01-04 18:12:28 +03:00
|
|
|
if (file("artifactory.gradle").exists()) {
|
2018-11-20 22:09:07 +03:00
|
|
|
apply(from = "artifactory.gradle")
|
2019-01-31 18:19:02 +03:00
|
|
|
}
|