Skip to content

Commit b03ff18

Browse files
nathanfalletoshai
authored andcommitted
adding missing watchos targets
1 parent b8c5221 commit b03ff18

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

build.gradle.kts

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -46,29 +46,29 @@ kotlin {
4646
}
4747

4848
jvm {
49-
compilations {
50-
val main by getting
51-
val logbackTest by compilations.creating {
52-
defaultSourceSet {
53-
dependencies {
54-
// Compile against the main compilation's compile classpath and outputs:
55-
implementation(main.compileDependencyFiles + main.output.classesDirs)
56-
implementation(kotlin("test-junit"))
49+
compilations {
50+
val main by getting
51+
val logbackTest by compilations.creating {
52+
defaultSourceSet {
53+
dependencies {
54+
// Compile against the main compilation's compile classpath and outputs:
55+
implementation(main.compileDependencyFiles + main.output.classesDirs)
56+
implementation(kotlin("test-junit"))
57+
}
58+
}
59+
val logbackTest = tasks.register<Test>("logbackTest") {
60+
description = "Runs tests with Logback"
61+
group = "verification"
62+
// Run the tests with the classpath containing the compile dependencies (including 'main'),
63+
// runtime dependencies, and the outputs of this compilation:
64+
classpath = compileDependencyFiles + runtimeDependencyFiles + output.allOutputs
65+
66+
// Run only the tests from this compilation's outputs:
67+
testClassesDirs = output.classesDirs
68+
}
69+
tasks["allTests"].dependsOn(logbackTest)
5770
}
58-
}
59-
val logbackTest = tasks.register<Test>("logbackTest") {
60-
description = "Runs tests with Logback"
61-
group = "verification"
62-
// Run the tests with the classpath containing the compile dependencies (including 'main'),
63-
// runtime dependencies, and the outputs of this compilation:
64-
classpath = compileDependencyFiles + runtimeDependencyFiles + output.allOutputs
65-
66-
// Run only the tests from this compilation's outputs:
67-
testClassesDirs = output.classesDirs
68-
}
69-
tasks["allTests"].dependsOn(logbackTest)
7071
}
71-
}
7272
}
7373
js {
7474
browser {
@@ -108,8 +108,10 @@ kotlin {
108108
iosArm64(),
109109
iosSimulatorArm64(),
110110
iosX64(),
111+
watchosArm32(),
111112
watchosArm64(),
112113
watchosSimulatorArm64(),
114+
watchosDeviceArm64(),
113115
watchosX64(),
114116
tvosArm64(),
115117
tvosSimulatorArm64(),

0 commit comments

Comments
 (0)