Skip to content

Commit 36dbc0e

Browse files
yeicorqurbonzoda
authored andcommitted
Fix for building large benchmark JARs
This should be enough to support building large JARs. It prevents this error when building JARs with more than 65535 entries or larger than 4GB: ``` Execution failed for task ':mainBenchmarkJar'. > archive contains more than 65535 entries. ``` Note that it may affect the compatibility of the JAR files with some old tools (see https://docs.gradle.org/current/dsl/org.gradle.api.tasks.bundling.Jar.html#org.gradle.api.tasks.bundling.Jar:zip64) Fixes #95
1 parent bb6ca2b commit 36dbc0e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugin/main/src/kotlinx/benchmark/gradle/JvmTasks.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ fun Project.createJvmBenchmarkCompileTask(target: JvmBenchmarkTarget, compileCla
2828
) {
2929
group = BenchmarksPlugin.BENCHMARKS_TASK_GROUP
3030
description = "Build JAR for JMH compiled files for '${target.name}'"
31+
isZip64 = true
3132
dependsOn("${target.name}${BenchmarksPlugin.BENCHMARK_COMPILE_SUFFIX}")
3233
archiveClassifier.set("JMH")
3334
manifest.attributes["Main-Class"] = "org.openjdk.jmh.Main"

0 commit comments

Comments
 (0)