Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
4 changes: 2 additions & 2 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ case "$( uname )" in #(
NONSTOP* ) nonstop=true ;;
esac

CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
CLASSPATH="\\\"\\\""


# Determine the Java command to use to start the JVM.
Expand Down Expand Up @@ -213,7 +213,7 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
"$@"

# Stop when "xargs" is not available.
Expand Down
4 changes: 2 additions & 2 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ goto fail
:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
set CLASSPATH=


@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*

:end
@rem End local scope for the variables with windows NT shell
Expand Down
5 changes: 4 additions & 1 deletion smithy-typescript-codegen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ sourceSets {
}

tasks.register("set-dependency-versions") {
val packagesDir = project.file("../packages")
var smithyTsSsdkLibs = project.file("../smithy-typescript-ssdk-libs")

doLast {
mkdir(layout.buildDirectory.dir("generated/resources/software/amazon/smithy/typescript/codegen").get().asFile)
var versionsFile = layout.buildDirectory
Expand All @@ -65,7 +68,7 @@ tasks.register("set-dependency-versions") {
.asFile
versionsFile.printWriter().close()

val roots = project.file("../packages").listFiles().toMutableList() + project.file("../smithy-typescript-ssdk-libs").listFiles().toList()
val roots = packagesDir.listFiles().toMutableList() + smithyTsSsdkLibs.listFiles().toList()
roots.forEach { packageDir ->
val packageJsonFile = File(packageDir, "package.json")
if (packageJsonFile.isFile()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* @param docs writer for the docs of the config field
*/
@SmithyUnstableApi
public final record ConfigField(
public record ConfigField(
String name,
Type type,
Symbol inputType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* properties from the trait or from {@code authParameters}.
*/
@SmithyUnstableApi
public final record HttpAuthOptionProperty(
public record HttpAuthOptionProperty(
String name,
Type type,
Function<Source, Consumer<TypeScriptWriter>> source
Expand All @@ -41,7 +41,7 @@ public enum Type {
SIGNING
}

public static final record Source(
public record Source(
HttpAuthScheme httpAuthScheme,
Trait trait
) implements ToSmithyBuilder<Source> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @param source writer for the value of the auth scheme parameter, typically from {@code context} or {@code config}
*/
@SmithyUnstableApi
public final record HttpAuthSchemeParameter(
public record HttpAuthSchemeParameter(
String name,
Consumer<TypeScriptWriter> type,
Consumer<TypeScriptWriter> source
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* ResolveConfigFunction.
*/
@SmithyUnstableApi
public final record ResolveConfigFunction(
public record ResolveConfigFunction(
Symbol resolveConfigFunction,
Symbol inputConfig,
Symbol resolvedConfig,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ private static void append(int indentation, StringBuilder buffer, String tail) {
* If a shape appears at too many depths it is truncated.
* This handles the case of recursive shapes.
*/
private static class ShapeTracker {
private static final class ShapeTracker {
private final Map<Shape, Set<Integer>> depths = new HashMap<>();
private final Map<Shape, Integer> occurrences = new HashMap<>();

Expand Down
Loading