Skip to content

Commit 3d48bc8

Browse files
authored
Merge pull request #61 from mpetuska/master
Kotlin 1.4.0-rc & build.gradle to kts
2 parents 2411021 + ecc0bb7 commit 3d48bc8

File tree

17 files changed

+473
-543
lines changed

17 files changed

+473
-543
lines changed

build.gradle

Lines changed: 0 additions & 41 deletions
This file was deleted.

build.gradle.kts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
buildscript {
2+
repositories {
3+
google()
4+
mavenCentral()
5+
maven("https://dl.bintray.com/jetbrains/kotlin-native-dependencies")
6+
maven("https://plugins.gradle.org/m2/")
7+
maven("https://oss.sonatype.org/content/repositories/snapshots")
8+
jcenter()
9+
}
10+
11+
dependencies {
12+
classpath(Plugins.kotlin)
13+
classpath(Plugins.dokka)
14+
classpath(Plugins.android)
15+
classpath(Plugins.atomicFu)
16+
}
17+
}
18+
19+
plugins {
20+
id("de.fayard.buildSrcVersions") version "0.4.2"
21+
}
22+
23+
allprojects {
24+
repositories {
25+
google()
26+
jcenter()
27+
maven("https://kotlin.bintray.com/kotlinx")
28+
maven("https://oss.sonatype.org/content/repositories/snapshots")
29+
maven("https://dl.bintray.com/spekframework/spek-dev")
30+
mavenCentral()
31+
}
32+
33+
group = project.properties["GROUP"]!!
34+
version = project.properties["VERSION_NAME"]!!
35+
if (hasProperty("SNAPSHOT") || System.getenv("SNAPSHOT") != null) {
36+
version = "$version-SNAPSHOT"
37+
}
38+
}

buildSrc/src/main/kotlin/Libs.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@ object Libs {
181181
const val spek_runner_junit5: String = "org.spekframework.spek2:spek-runner-junit5:" +
182182
Versions.spek
183183

184-
const val kotlin_coroutines: String = "org.jetbrains.kotlinx:kotlinx-coroutines-core-common:" +
184+
const val kotlin_coroutines: String = "org.jetbrains.kotlinx:kotlinx-coroutines-core:" +
185185
Versions.coroutines
186186

187-
const val kotlin_coroutines_jvm: String = "org.jetbrains.kotlinx:kotlinx-coroutines-core:" +
187+
const val kotlin_coroutines_jvm: String = "org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:" +
188188
Versions.coroutines
189189

190190
const val kotlin_coroutines_test: String = "org.jetbrains.kotlinx:kotlinx-coroutines-test:" +

buildSrc/src/main/kotlin/Versions.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ object Versions {
3434

3535
const val dokka_gradle_plugin: String = "0.9.17" // available: "0.9.18"
3636

37-
const val org_jetbrains_kotlin: String = "1.3.72"
37+
const val org_jetbrains_kotlin: String = "1.4.0-rc"
3838

3939
const val spek: String = "2.1.0-alpha.0.11+d97ef33"
4040
// available: "2.1.0-alpha.0.24+0fdeb6e"
@@ -43,9 +43,9 @@ object Versions {
4343

4444
const val recycler_view = "1.0.0"
4545

46-
const val coroutines = "1.3.7"
46+
const val coroutines = "1.3.8-1.4.0-rc"
4747

48-
const val atomicFu = "0.14.2"
48+
const val atomicFu = "0.14.3-1.4.0-rc"
4949

5050
/**
5151
*

examples/counter/common/build.gradle

Lines changed: 0 additions & 96 deletions
This file was deleted.
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
plugins {
2+
java
3+
kotlin("multiplatform")
4+
}
5+
6+
repositories {
7+
maven("https://dl.bintray.com/spekframework/spek-dev")
8+
}
9+
10+
kotlin {
11+
jvm()
12+
js(IR) {
13+
browser()
14+
binaries.executable()
15+
16+
listOf(compilations["main"], compilations["test"]).forEach {
17+
with(it.kotlinOptions) {
18+
moduleKind = "umd"
19+
sourceMap = true
20+
sourceMapEmbedSources = "always"
21+
metaInfo = true
22+
}
23+
}
24+
}
25+
26+
iosArm64("ios")
27+
iosX64("iosSim")
28+
macosX64("macos")
29+
mingwX64("win")
30+
wasm32("wasm")
31+
linuxArm32Hfp("linArm32")
32+
linuxMips32("linMips32")
33+
linuxMipsel32("linMipsel32")
34+
linuxX64("lin64")
35+
36+
sourceSets {
37+
commonMain {
38+
dependencies {
39+
implementation(project(":redux-kotlin"))
40+
}
41+
}
42+
commonTest {
43+
kotlin.srcDir("src/test/kotlin")
44+
dependencies {
45+
implementation(kotlin("test-common"))
46+
implementation(kotlin("test-annotations-common"))
47+
implementation("org.spekframework.spek2:spek-dsl-metadata:${Versions.spek}")
48+
implementation("ch.tutteli.atrium:atrium-cc-en_GB-robstoll-common:${Versions.atrium}")
49+
implementation("io.mockk:mockk-common:${Versions.mockk}")
50+
}
51+
}
52+
val jvmTest by getting {
53+
dependencies {
54+
implementation(kotlin("test"))
55+
implementation(kotlin("test-junit"))
56+
implementation("org.spekframework.spek2:spek-dsl-jvm:${Versions.spek}")
57+
implementation("ch.tutteli.atrium:atrium-cc-en_GB-robstoll:${Versions.atrium}")
58+
implementation("io.mockk:mockk:${Versions.mockk}")
59+
60+
runtimeOnly("org.spekframework.spek2:spek-runner-junit5:${Versions.spek}")
61+
runtimeOnly("org.jetbrains.kotlin:kotlin-reflect")
62+
}
63+
}
64+
val jsTest by getting {
65+
dependencies {
66+
implementation(kotlin("test-js"))
67+
implementation(kotlin("stdlib-js"))
68+
}
69+
}
70+
71+
val iosMain by getting
72+
val iosTest by getting
73+
val iosSimMain by getting { dependsOn(iosMain) }
74+
val iosSimTest by getting { dependsOn(iosTest) }
75+
}
76+
}
77+
78+
tasks {
79+
val jvmTest by getting(Test::class) {
80+
useJUnitPlatform {
81+
includeEngines("spek2")
82+
}
83+
}
84+
}

examples/todos/common/build.gradle

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)