Does ktor build execute shadowJar also?
# ktor
m
Does ktor build execute shadowJar also?
e
Hey @Mario Andhika, nope. It can be should separately
m
Hmm I wonder why this script runs shadowJar
Copy code
package _Self.buildTypes

import jetbrains.buildServer.configs.kotlin.*
import jetbrains.buildServer.configs.kotlin.buildFeatures.perfmon
import jetbrains.buildServer.configs.kotlin.buildSteps.gradle
import jetbrains.buildServer.configs.kotlin.triggers.vcs

object Build1 : BuildType({
    name = "Build (1)"

    vcs {
        root(HttpsGitJetbrainsSpaceZealstechMainZealsKtorGitRefsHeadsMaster1)
    }
    steps {
        gradle {
            name = "gradleBuild"
            id = "gradleBuild"
            tasks = "build"
            buildFile = "build.gradle.kts"
        }
    }
    triggers {
        vcs {
        }
    }

    features {
        perfmon {
        }
    }
})
Here’s the build log:
Copy code
Process exited with code 1
Gradle failure report
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':shadowJar'.
  > shadow.org.apache.tools.zip.Zip64RequiredException: archive contains more than 65535 entries.
  
    To build this archive, please enable the zip64 extension.
    See: <https://docs.gradle.org/8.10.2/dsl/org.gradle.api.tasks.bundling.Zip.html#org.gradle.api.tasks.bundling.Zip:zip64>
  
  * Try:
  > Run with --stacktrace option to get the stack trace.
  > Run with --info or --debug option to get more log output.
  > Run with --scan to get full insights.
  > Get more help at <https://help.gradle.org>
  
  BUILD FAILED in 34s
This doesn’t happen if I build the ktor app locally. Only on TeamCity
🤔 1
:buildImage from ktor docker plugin works though
a
You can configure the Ktor Gradle plugin to allow ZIP64 (https://youtrack.jetbrains.com/issue/KTOR-6884).