Add Dining Philosopher and Consumer Producer base code structure

This commit is contained in:
2022-09-23 05:06:34 +02:00
commit 83e6b4d4c6
12 changed files with 792 additions and 0 deletions

30
build.gradle.kts Normal file
View File

@@ -0,0 +1,30 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.7.10"
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("io.kotest:kotest-runner-junit5-jvm:5.4.2")
testImplementation(kotlin("test"))
testImplementation("io.kotest:kotest-runner-junit5:5.4.2")
testImplementation("io.kotest:kotest-property:5.4.2")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-debug:1.4.0")
}
tasks.test {
useJUnitPlatform()
testLogging.showStandardStreams = true
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}