Skip to content

Commit

Permalink
increase gradle connection timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
0marperez committed Sep 20, 2024
1 parent e7fdeff commit 8f0dec1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ kotlin.native.ignoreDisabledTargets=true

# gradle
org.gradle.jvmargs=-Xmx6g -XX:MaxMetaspaceSize=2G
org.gradle.internal.http.connectionTimeout=120_000
org.gradle.internal.http.socketTimeout=120_000
org.gradle.internal.https.connectionTimeout=120_000
org.gradle.internal.https.socketTimeout=120_000

# sdk
sdkVersion=1.3.18-SNAPSHOT
Expand Down
11 changes: 6 additions & 5 deletions tests/codegen/smoke-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,19 @@ import aws.sdk.kotlin.gradle.codegen.dsl.smithyKotlinPlugin
import aws.sdk.kotlin.gradle.codegen.smithyKotlinProjectionPath

description = "Tests for smoke tests runners"

plugins {
alias(libs.plugins.aws.kotlin.repo.tools.smithybuild)
alias(libs.plugins.kotlin.jvm)
}

val projections = listOf(
ProjectionMetadata("successService", "smoke-tests-success.smithy", "smithy.kotlin.traits#SuccessService"),
ProjectionMetadata("failureService", "smoke-tests-failure.smithy", "smithy.kotlin.traits#FailureService"),
Projection("successService", "smoke-tests-success.smithy", "smithy.kotlin.traits#SuccessService"),
Projection("failureService", "smoke-tests-failure.smithy", "smithy.kotlin.traits#FailureService"),
)

configureProject()
configureSmithyProjections()
configureProjections()
configureTasks()

fun configureProject() {
Expand All @@ -37,7 +38,7 @@ fun configureProject() {
}
}

fun configureSmithyProjections() {
fun configureProjections() {
smithyBuild {
val pathToSmithyModels = "src/test/resources/"

Expand Down Expand Up @@ -106,7 +107,7 @@ fun configureTasks() {
/**
* Holds metadata about a smithy projection
*/
data class ProjectionMetadata(
data class Projection(
val name: String,
val modelFile: String,
val serviceShapeId: String,
Expand Down

0 comments on commit 8f0dec1

Please sign in to comment.