Skip to content

Commit 4992189

Browse files
committed
fix
1 parent ddca24a commit 4992189

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

runtime/protocol/http-client-engines/test-suite/build.gradle.kts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,10 @@ abstract class TestServerService :
9696
val testServerService = gradle.sharedServices.registerIfAbsent("testServers", TestServerService::class) {
9797
parameters.sslConfigPath.set(File.createTempFile("ssl-", ".cfg").absolutePath)
9898
parameters.mainClass.set("aws.smithy.kotlin.runtime.http.test.util.TestServersKt")
99-
val kotlinCompilation = kotlin.targets.getByName("jvm").compilations["test"]
100-
parameters.classpath.from(kotlinCompilation.runtimeDependencyFiles!!)
99+
}
100+
101+
afterEvaluate {
102+
testServerService.get().parameters.classpath.from(kotlin.targets.getByName("jvm").compilations["test"].runtimeDependencyFiles!!)
101103
}
102104

103105
abstract class StartTestServersTask : DefaultTask() {

0 commit comments

Comments
 (0)