File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change
1
+ import org.gradle.configurationcache.extensions.capitalized
2
+
1
3
plugins {
2
4
alias(libs.plugins.kotlin.jvm)
3
5
alias(libs.plugins.multiJvmTesting)
@@ -41,10 +43,12 @@ val runAll by tasks.register<DefaultTask>("runAll") {
41
43
* Scan the folder with the simulation files, and create a task for each one of them.
42
44
*/
43
45
File (rootProject.rootDir.path + " /src/main/yaml" ).listFiles()
46
+ .orEmpty()
47
+ .apply { check(isNotEmpty()) }
44
48
.filter { it.extension == " yml" }
45
49
.sortedBy { it.nameWithoutExtension }
46
50
.forEach {
47
- val task by tasks.register<JavaExec >(" run${it.nameWithoutExtension.capitalize ()} " ) {
51
+ val task by tasks.register<JavaExec >(" run${it.nameWithoutExtension.capitalized ()} " ) {
48
52
javaLauncher.set(
49
53
javaToolchains.launcherFor {
50
54
languageVersion.set(JavaLanguageVersion .of(multiJvm.latestJava))
You can’t perform that action at this time.
0 commit comments