Skip to content

Commit 1105113

Browse files
author
Patrick Jackson
committed
switch to kotlin gradle DSL
1 parent 117111c commit 1105113

File tree

3 files changed

+45
-161
lines changed

3 files changed

+45
-161
lines changed

build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,3 @@ allprojects {
2828
maven { url "https://kotlin.bintray.com/kotlinx" }
2929
}
3030
}
31-
32-
task clean(type: Delete) {
33-
delete rootProject.buildDir
34-
}

common/build.gradle

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

common/build.gradle.kts

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import org.gradle.internal.impldep.org.apache.maven.Maven
2+
3+
plugins {
4+
kotlin("multiplatform")
5+
`maven-publish`
6+
}
7+
8+
9+
repositories {
10+
mavenCentral()
11+
}
12+
13+
kotlin {
14+
targets {
15+
jvm()
16+
js {
17+
browser()
18+
nodejs()
19+
}
20+
linuxX64()
21+
linuxArm32Hfp()
22+
macosX64()
23+
mingwX64()
24+
iosArm64()
25+
iosArm32()
26+
iosX64()
27+
}
28+
sourceSets {
29+
commonTest {
30+
kotlin.srcDir("src/test/kotlin")
31+
}
32+
}
33+
}
34+
35+
dependencies {
36+
commonMainImplementation("org.jetbrains.kotlin:kotlin-stdlib")
37+
commonTestImplementation("org.jetbrains.kotlin:kotlin-test-annotations-common")
38+
commonTestImplementation("org.jetbrains.kotlin:kotlin-test-common")
39+
40+
"jvmMainImplementation"("org.jetbrains.kotlin:kotlin-stdlib")
41+
"jvmTestImplementation"("org.jetbrains.kotlin:kotlin-test-junit")
42+
43+
"jsMainImplementation"("org.jetbrains.kotlin:kotlin-stdlib-js")
44+
"jsTestImplementation"("org.jetbrains.kotlin:kotlin-test-js")
45+
}

0 commit comments

Comments
 (0)