Skip to content

Commit 47f47c4

Browse files
chore: fix aws sdk deps
1 parent ad86f1c commit 47f47c4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ dependencies {
3030
implementation(libs.pearx.kasechange)
3131

3232
implementation(platform("aws.smithy.kotlin:bom:1.5.15"))
33-
implementation("aws.smithy.kotlin:http-client-engine-crt")
34-
implementation("aws.smithy.kotlin:aws-signing-default")
33+
implementation("aws.smithy.kotlin:http-client-engine-okhttp")
3534
}
3635

3736
gradlePlugin {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description=CodeArtifact settings plugin for Gradle
33
kotlin.code.style=official
44

55
group=io.cloudshiftdev.codeartifact
6-
version=2.1.3
6+
version=2.1.4
77

88
org.gradle.jvmargs=-Dfile.encoding\=UTF-8
99
org.gradle.vfs.watch=true

src/main/kotlin/io/cloudshiftdev/gradle/codeartifact/service/CodeArtifactService.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProvider
1515
import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProviderChain
1616
import aws.smithy.kotlin.runtime.collections.Attributes
1717
import aws.smithy.kotlin.runtime.content.asByteStream
18-
import aws.smithy.kotlin.runtime.http.engine.crt.CrtHttpEngine
18+
import aws.smithy.kotlin.runtime.http.engine.HttpClientEngine
19+
import aws.smithy.kotlin.runtime.http.engine.okhttp.OkHttpEngine
1920
import aws.smithy.kotlin.runtime.time.toJvmInstant
2021
import io.cloudshiftdev.gradle.codeartifact.CodeArtifactEndpoint
2122
import io.cloudshiftdev.gradle.codeartifact.CodeArtifactToken
@@ -119,7 +120,7 @@ private class CodeArtifactClientFactory() {
119120

120121
fun create(endpoint: CodeArtifactEndpoint): CodeartifactClient {
121122
return clientCache.computeIfAbsent(endpoint.cacheKey) {
122-
val httpEnginex = CrtHttpEngine()
123+
val httpEnginex = OkHttpEngine()
123124
CodeartifactClient {
124125
region = endpoint.region
125126
credentialsProvider =
@@ -131,7 +132,7 @@ private class CodeArtifactClientFactory() {
131132

132133
private fun buildCredentialsProvider(
133134
queryParameters: Map<String, String>,
134-
httpEnginex: CrtHttpEngine,
135+
httpEnginex: HttpClientEngine,
135136
): CredentialsProvider {
136137
fun mask(value: String?): String? =
137138
when {

0 commit comments

Comments
 (0)