Skip to content

Commit f6daa3e

Browse files
committed
fix: class loader issue caused by libraries
- okhttp is no longer provided by Toolbox - with this commit we package our own libraries
1 parent 767db2c commit f6daa3e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

build.gradle.kts

-2
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ val copyPlugin by tasks.creating(Sync::class.java) {
111111
"core-api",
112112
"ui-api",
113113
"annotations",
114-
"okhttp",
115-
"okio",
116114
"slf4j",
117115
).any { file.name.contains(it) }
118116
}

src/main/kotlin/com/coder/gateway/CoderGatewayExtension.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class CoderGatewayExtension : RemoteDevExtension {
1717
// All services must be passed in here and threaded as necessary.
1818
override fun createRemoteProviderPluginInstance(serviceLocator: ServiceLocator): RemoteProvider {
1919
return CoderRemoteProvider(
20-
serviceLocator.getService(OkHttpClient::class.java),
20+
OkHttpClient(),
2121
serviceLocator.getService(RemoteEnvironmentConsumer::class.java),
2222
serviceLocator.getService(CoroutineScope::class.java),
2323
serviceLocator.getService(ToolboxUi::class.java),

0 commit comments

Comments
 (0)