src/setup-bazelisk/src.main.kts [5:41]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @file:DependsOn("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1") @file:Repository("https://download.jetbrains.com/teamcity-repository/") @file:DependsOn("org.jetbrains.teamcity:serviceMessages:2024.12") import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import com.fasterxml.jackson.databind.DeserializationFeature import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.module.kotlin.KotlinModule import com.fasterxml.jackson.module.kotlin.readValue import jetbrains.buildServer.messages.serviceMessages.ServiceMessage.TAGS_ATRRIBUTE import jetbrains.buildServer.messages.serviceMessages.ServiceMessage.asString import jetbrains.buildServer.messages.serviceMessages.ServiceMessageTypes.BUILD_SET_PARAMETER import jetbrains.buildServer.messages.serviceMessages.ServiceMessageTypes.MESSAGE import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.delay import kotlinx.coroutines.runBlocking import kotlinx.coroutines.withContext import org.apache.commons.lang3.SystemUtils import java.io.IOException import java.net.URI import java.net.URL import java.nio.file.* import java.util.* import java.util.concurrent.TimeUnit import kotlin.contracts.ExperimentalContracts import kotlin.contracts.InvocationKind import kotlin.contracts.contract import kotlin.coroutines.cancellation.CancellationException import kotlin.io.path.* import kotlin.math.min runCatchingWithLogging { val version = requiredInput("version") val installationPath = input("installation_path") .ifBlank { "." } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - src/setup-node/src.main.kts [5:43]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @file:DependsOn("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1") @file:Repository("https://download.jetbrains.com/teamcity-repository/") @file:DependsOn("org.jetbrains.teamcity:serviceMessages:2024.12") import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.databind.DeserializationFeature import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.module.kotlin.KotlinModule import com.fasterxml.jackson.module.kotlin.readValue import jetbrains.buildServer.messages.serviceMessages.ServiceMessage.TAGS_ATRRIBUTE import jetbrains.buildServer.messages.serviceMessages.ServiceMessage.asString import jetbrains.buildServer.messages.serviceMessages.ServiceMessageTypes.BUILD_SET_PARAMETER import jetbrains.buildServer.messages.serviceMessages.ServiceMessageTypes.MESSAGE import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.runBlocking import kotlinx.coroutines.withContext import org.apache.commons.compress.archivers.ArchiveEntry import org.apache.commons.compress.archivers.tar.TarArchiveInputStream import org.apache.commons.compress.archivers.zip.ZipFile import org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream import org.apache.commons.io.FileUtils.copyURLToFile import org.apache.commons.io.FileUtils.getTempDirectory import org.apache.commons.io.IOUtils import org.apache.commons.lang3.SystemUtils import java.io.File import java.io.FileInputStream import java.io.IOException import java.net.HttpURLConnection import java.net.URL import java.nio.charset.Charset import java.nio.file.Files import java.nio.file.Path import java.nio.file.Paths runCatchingWithLogging { val version = requiredInput("version") val installationPath = input("installation_path") .ifBlank { "." } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -