Skip to content

Commit 41b6696

Browse files
h0tk3yAbduqodiri Qurbonzoda
authored andcommitted
Don't resolve dependencies in the lazy configuration scope (#13) (#14)
1 parent a1cd519 commit 41b6696

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,16 @@ fun Project.createJvmBenchmarkCompileTask(target: JvmBenchmarkTarget, compileCla
3232
conventionMapping.map("classifier") { "JMH" }
3333
manifest.attributes["Main-Class"] = "org.openjdk.jmh.Main"
3434

35-
from(compileClasspath.map {
36-
when {
37-
it.isDirectory -> it
38-
it.exists() -> zipTree(it)
39-
else -> files()
35+
from(project.provider {
36+
compileClasspath.map {
37+
when {
38+
it.isDirectory -> it
39+
it.exists() -> zipTree(it)
40+
else -> files()
41+
}
4042
}
4143
})
44+
4245
from(compileTask)
4346
from(file("$benchmarkBuildDir/resources"))
4447
destinationDirectory.set(File("$benchmarkBuildDir/jars"))

0 commit comments

Comments
 (0)