Skip to content

Commit

Permalink
WIP broken upgrade of Smithy to 1.34.0-SNAPSHOT including endpoints r…
Browse files Browse the repository at this point in the history
…efactor
  • Loading branch information
ianbotsf committed Jul 20, 2023
1 parent 0510cc7 commit 0dfd642
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion codegen/smithy-aws-kotlin-codegen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies {
api("software.amazon.smithy:smithy-aws-iam-traits:$smithyVersion")
api("software.amazon.smithy:smithy-aws-cloudformation-traits:$smithyVersion")
api("software.amazon.smithy:smithy-protocol-test-traits:$smithyVersion")
implementation("software.amazon.smithy:smithy-rules-engine:$smithyVersion")
implementation("software.amazon.smithy:smithy-aws-rules-engine:$smithyVersion")

testImplementation("org.junit.jupiter:junit-jupiter:$junitVersion")
testImplementation("org.junit.jupiter:junit-jupiter-params:$junitVersion")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import software.amazon.smithy.kotlin.codegen.rendering.endpoints.ExpressionRende
import software.amazon.smithy.kotlin.codegen.utils.getOrNull
import software.amazon.smithy.model.node.Node
import software.amazon.smithy.model.node.ObjectNode
import software.amazon.smithy.rulesengine.language.syntax.expr.Expression
import software.amazon.smithy.rulesengine.language.syntax.expressions.Expression
import java.util.*

val awsEndpointFunctions = mapOf(
Expand All @@ -24,9 +24,6 @@ val awsEndpointPropertyRenderers = mapOf(
"authSchemes" to ::renderAuthSchemes,
)

// valid auth scheme names that can appear in a smithy endpoint's properties
private val validAuthSchemeNames = setOf("sigv4", "sigv4a")

private fun String.toSigningContextClassName(): String? =
when (this) {
"sigv4" -> "SigV4"
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ org.gradle.jvmargs=-Xmx6g -XX:MaxMetaspaceSize=2G
sdkVersion=0.29.0-SNAPSHOT

# codegen
smithyVersion=1.29.0
smithyVersion=1.34.0-SNAPSHOT
smithyGradleVersion=0.6.0
# smithy-kotlin codegen and runtime are versioned together
smithyKotlinVersion=0.23.0-SNAPSHOT
Expand Down
2 changes: 2 additions & 0 deletions gradle/sdk-plugins/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import java.util.Properties
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
}
Expand All @@ -15,6 +16,7 @@ plugins {
}

repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
}
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

pluginManagement {
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
}
Expand Down

0 comments on commit 0dfd642

Please sign in to comment.