-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64b8fee
commit c2e8060
Showing
13 changed files
with
937 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,63 @@ | ||
plugins { | ||
java | ||
id("java-library") | ||
kotlin("multiplatform") | ||
id("com.android.library") | ||
//id("com.android.library") | ||
id("io.kotest.multiplatform") version "5.8.0" | ||
} | ||
|
||
kotlin { | ||
jvm { | ||
compilations.all { | ||
kotlinOptions.jvmTarget = "1.8" | ||
} | ||
testRuns["test"].executionTask.configure { | ||
useJUnitPlatform() | ||
kotlinOptions.jvmTarget = "17" | ||
} | ||
// testRuns["test"].executionTask.configure { | ||
// useJUnitPlatform() | ||
// } | ||
// tasks.withType<Test>().configureEach { | ||
// useJUnitPlatform() | ||
// } | ||
} | ||
|
||
js() | ||
android() | ||
//android() | ||
|
||
sourceSets { | ||
val commonMain by getting { | ||
dependencies { | ||
// Common dependencies for all platforms | ||
} | ||
} | ||
val jvmMain by getting { | ||
dependencies { | ||
// JVM specific dependencies | ||
} | ||
} | ||
val androidMain by getting { | ||
dependencies { | ||
// Android specific dependencies | ||
} | ||
} | ||
val jsMain by getting { | ||
dependencies { | ||
// JS specific dependencies | ||
} | ||
} | ||
val commonMain by getting { dependencies { } } | ||
val commonTest by getting { dependencies { | ||
implementation("io.kotest:kotest-framework-engine:5.8.0") | ||
implementation("io.kotest:kotest-assertions-core:5.8.0") | ||
implementation(kotlin("test-common")) | ||
implementation(kotlin("test-annotations-common")) | ||
|
||
} } | ||
val jvmTest by getting { dependencies { | ||
implementation("io.kotest:kotest-runner-junit5:5.8.0") | ||
} } | ||
// val androidMain by getting { dependencies { | ||
// } } | ||
val jsMain by getting { dependencies { | ||
} } | ||
} | ||
} | ||
|
||
android { | ||
compileSdk = 32 | ||
namespace = "io.exoquery.pprint" | ||
//android { | ||
// compileSdk = 32 | ||
// namespace = "io.exoquery.pprint" | ||
//} | ||
|
||
tasks.named<Test>("jvmTest") { | ||
useJUnitPlatform() | ||
filter { | ||
isFailOnNoMatchingTests = false | ||
} | ||
testLogging { | ||
showExceptions = true | ||
showStandardStreams = true | ||
events = setOf( | ||
org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED, | ||
org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED | ||
) | ||
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.