import Ġorg . gradle . api . Java Version . VERSION _ 1 _ 8 Ċ import Ġorg . jetbrains . dok ka . gradle . D ok ka Task Ċ import Ġorg . jetbrains . kotlin . config . Kotlin Compiler Version Ċ import Ġorg . jetbrains . kotlin . gradle . tasks . Kotlin Compile Ċ Ċ plugins Ġ{ Ċ ĉ kotlin (" jvm ") Ċ ĉ id (" org . jetbrains . dok ka ") Ċ } Ċ Ċ val Ġartifact Id Ġby Ġextra (" spe k - test files ") Ċ val Ġdescription Ġby Ġextra (" Manage Ġtest Ġfiles Ġand Ġdirectories Ġne at ly Ġwhen Ġtesting Ġwith ĠSpe k !") Ċ Ċ dependencies Ġ{ Ċ ĉ val Ġspe k Version Ġ= Ġ" 2 . 0 . 1 7 " ĊĊ ĉ // ĠSpe k Ġis Ġa Ġpeer Ġdependency Ċ ĉ compile Only ( name Ġ= Ġ" spe k - dsl - jvm ", Ġgroup Ġ= Ġ" org . spe k framework . spe k 2 ", Ġversion Ġ= Ġspe k Version ) Ċ ĉ compile Only ( name Ġ= Ġ" spe k - runtime - jvm ", Ġgroup Ġ= Ġ" org . spe k framework . spe k 2 ", Ġversion Ġ= Ġspe k Version ) ĊĊ ĉ api ( project (": base ")) Ċ ĉ test Implementation ( name Ġ= Ġ" spe k - dsl - jvm ", Ġversion Ġ= Ġspe k Version , Ġgroup Ġ= Ġ" org . spe k framework . spe k 2 ") Ċ ĉ test Implementation ( name Ġ= Ġ" at rium - fluent - en _ GB ", Ġversion Ġ= Ġ" 0 . 1 6 . 0 ", Ġgroup Ġ= Ġ" ch . tut tel i . at rium ") Ċ ĉ test Runtime Only ( name Ġ= Ġ" spe k - runner - junit 5 ", Ġversion Ġ= Ġspe k Version , Ġgroup Ġ= Ġ" org . spe k framework . spe k 2 ") ĊĊ ĉ constraints Ġ{ Ċĉ ĉ test Implementation ( kotlin (" reflect ", Ġversion Ġ= ĠKotlin Compiler Version . VERSION )) Ċ ĉ } Ċ } Ċ Ċ java Ġ{ Ċ ĉ source Compatibility Ġ= ĠVERSION _ 1 _ 8 Ċ ĉ target Compatibility Ġ= ĠVERSION _ 1 _ 8 Ċ } Ċ Ċ kotlin Ġ{ Ċ ĉ explicit Api () Ċ } Ċ Ċ tasks . with Type < Kotlin Compile > Ġ{ Ċ ĉ kotlin Options Ġ{ Ċĉ ĉ jvm Target Ġ= Ġ" 1 . 8 " Ċ ĉ } Ċ } Ċ Ċ tasks . compile Test Kotlin Ġ{ Ċ ĉ kotlin Options Ġ{ Ċĉ ĉ free Compiler Args Ġ+= Ġ"- X opt - in = kotlin . io . path . Experimental Path Api " Ċ ĉ } Ċ } Ċ Ċ tasks . with Type < D ok ka Task > Ġ{ Ċ ĉ dok ka Source Sets . named (" main ") Ġ{ Ċĉ ĉ samples . from (" src / test / kotlin / samples / Example Spe k . kt ") Ċ ĉ } Ċ } Ċ Ċ tasks . with Type < Test > Ġ{ Ċ ĉ use JUnit Platform () Ċ } Ċ