Skip to content

Commit

Permalink
Remove unstyled file and remove println from build gradle kts
Browse files Browse the repository at this point in the history
  • Loading branch information
tomascayuelas committed Nov 15, 2023
1 parent 26e73c8 commit 1ba4191
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
19 changes: 8 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,14 @@ fun Project.configureBuildAndTestTask(taskName: String, moduleType: ModulePlatfo

doLast {
when (moduleType) {
ModulePlatformType.SINGLE -> {
val excludedModules = includeOrNotModulesToCommand(multiPlatformModules, platform, false)
println("modulesToExclude: ${excludedModules.toList()}")
project.exec { commandLine(gradleCommand, "build", *excludedModules) }
}

ModulePlatformType.MULTI -> {
val includedModules = includeOrNotModulesToCommand(multiPlatformModules, platform, true)
println("modulesToInclude: ${includedModules.toList()}")
project.exec { commandLine(gradleCommand, *includedModules) }
}
ModulePlatformType.SINGLE -> {
val excludedModules = includeOrNotModulesToCommand(multiPlatformModules, platform, false)
project.exec { commandLine(gradleCommand, "build", *excludedModules) }
}
ModulePlatformType.MULTI -> {
val includedModules = includeOrNotModulesToCommand(multiPlatformModules, platform, true)
project.exec { commandLine(gradleCommand, *includedModules) }
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import io.ktor.utils.io.core.*
* dependencies
*/
interface AutoClose : AutoCloseable {
fun <A : AutoCloseable> autoClose(autoCloseable: A): A
fun <A : AutoCloseable> autoClose(autoCloseable: A): A
}

/** DSL method to use AutoClose */
Expand Down

0 comments on commit 1ba4191

Please sign in to comment.