Merge dev into master #59

Merged
altavir merged 37 commits from dev into master 2019-05-31 12:35:58 +03:00
8 changed files with 66 additions and 134 deletions
Showing only changes of commit bae77b6979 - Show all commits

View File

@ -11,6 +11,8 @@ kotlin {
compilations.all { compilations.all {
kotlinOptions { kotlinOptions {
jvmTarget = "1.8" jvmTarget = "1.8"
// This was used in kmath-koma, but probably if we need it better to apply it for all modules
//freeCompilerArgs += "-progressive"
} }
} }
} }

View File

@ -1,20 +1,14 @@
plugins { plugins {
id("multiplatform-config") `multiplatform-config`
} }
val ioVersion: String by rootProject.extra kotlin.sourceSets {
kotlin {
sourceSets {
commonMain { commonMain {
dependencies { dependencies {
api(project(":kmath-memory")) api(project(":kmath-memory"))
} }
} }
// mingwMain { //mingwMain {}
// } //mingwTest {}
// mingwTest {
// }
}
} }

View File

@ -1,41 +1,22 @@
plugins { plugins {
id("multiplatform-config") `multiplatform-config`
} }
kotlin { kotlin.sourceSets {
sourceSets {
commonMain { commonMain {
dependencies { dependencies {
api(project(":kmath-core")) api(project(":kmath-core"))
api("org.jetbrains.kotlinx:kotlinx-coroutines-core-common:${Ver.coroutinesVersion}") api("org.jetbrains.kotlinx:kotlinx-coroutines-core-common:${Ver.coroutinesVersion}")
} }
} }
commonTest {
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
}
}
jvmMain { jvmMain {
dependencies { dependencies {
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:${Ver.coroutinesVersion}") api("org.jetbrains.kotlinx:kotlinx-coroutines-core:${Ver.coroutinesVersion}")
} }
} }
jvmTest {
dependencies {
implementation(kotlin("test"))
implementation(kotlin("test-junit"))
}
}
jsMain { jsMain {
dependencies { dependencies {
api("org.jetbrains.kotlinx:kotlinx-coroutines-core-js:${Ver.coroutinesVersion}") api("org.jetbrains.kotlinx:kotlinx-coroutines-core-js:${Ver.coroutinesVersion}")
} }
} }
jsTest {
dependencies {
implementation(kotlin("test-js"))
}
}
}
} }

View File

@ -1,30 +1,10 @@
plugins { plugins {
id("multiplatform-config") `multiplatform-config`
} }
kotlin { // Just an example how we can collapse nested DSL for simple declarations
sourceSets { kotlin.sourceSets.commonMain {
commonMain {
dependencies { dependencies {
api(project(":kmath-core")) api(project(":kmath-core"))
} }
} }
commonTest {
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
}
}
jvmTest {
dependencies {
implementation(kotlin("test"))
implementation(kotlin("test-junit"))
}
}
jsTest {
dependencies {
implementation(kotlin("test-js"))
}
}
}
}

View File

@ -1,33 +1,18 @@
plugins { plugins {
id("multiplatform-config") `multiplatform-config`
} }
repositories { repositories {
maven("http://dl.bintray.com/kyonifer/maven") maven("http://dl.bintray.com/kyonifer/maven")
} }
kotlin { kotlin.sourceSets {
jvm {
compilations.all {
kotlinOptions {
freeCompilerArgs += "-progressive"
}
}
}
sourceSets {
commonMain { commonMain {
dependencies { dependencies {
api(project(":kmath-core")) api(project(":kmath-core"))
api("com.kyonifer:koma-core-api-common:0.12") api("com.kyonifer:koma-core-api-common:0.12")
} }
} }
commonTest {
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
}
}
jvmMain { jvmMain {
dependencies { dependencies {
api("com.kyonifer:koma-core-api-jvm:0.12") api("com.kyonifer:koma-core-api-jvm:0.12")
@ -35,8 +20,6 @@ kotlin {
} }
jvmTest { jvmTest {
dependencies { dependencies {
implementation(kotlin("test"))
implementation(kotlin("test-junit"))
implementation("com.kyonifer:koma-core-ejml:0.12") implementation("com.kyonifer:koma-core-ejml:0.12")
} }
} }
@ -45,10 +28,4 @@ kotlin {
api("com.kyonifer:koma-core-api-js:0.12") api("com.kyonifer:koma-core-api-js:0.12")
} }
} }
jsTest {
dependencies {
implementation(kotlin("test-js"))
}
}
}
} }

View File

@ -1,3 +1,3 @@
plugins { plugins {
id("multiplatform-config") `multiplatform-config`
} }

View File

@ -1,10 +1,9 @@
plugins { plugins {
id("multiplatform-config") `multiplatform-config`
id("kotlinx-atomicfu") version Ver.atomicfuVersion id("kotlinx-atomicfu") version Ver.atomicfuVersion
} }
kotlin { kotlin.sourceSets {
sourceSets {
commonMain { commonMain {
dependencies { dependencies {
api(project(":kmath-core")) api(project(":kmath-core"))
@ -24,7 +23,6 @@ kotlin {
} }
} }
}
atomicfu { atomicfu {
variant = "VH" variant = "VH"