-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: update gradle plugin failure tests to use version catalog (#1659)
- Loading branch information
1 parent
00b1731
commit 0540730
Showing
6 changed files
with
27 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 12 additions & 11 deletions
23
plugins/graphql-kotlin-gradle-plugin/src/integration/introspection-timeout/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,28 @@ | ||
import com.expediagroup.graphql.plugin.gradle.config.TimeoutConfiguration | ||
import com.expediagroup.graphql.plugin.gradle.tasks.GraphQLIntrospectSchemaTask | ||
|
||
@Suppress("DSL_SCOPE_VIOLATION") // TODO: remove once KTIJ-19369 / Gradle#22797 is fi | ||
plugins { | ||
kotlin("jvm") version "1.7.21" | ||
id("com.expediagroup.graphql") | ||
id("com.expediagroup.graphql") | ||
alias(libs.plugins.kotlin.jvm) | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
mavenLocal { | ||
content { | ||
includeGroup("com.expediagroup") | ||
mavenCentral() | ||
mavenLocal { | ||
content { | ||
includeGroup("com.expediagroup") | ||
} | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.7.21") | ||
implementation("com.expediagroup:graphql-kotlin-spring-client") | ||
implementation("com.expediagroup:graphql-kotlin-spring-client") | ||
implementation(libs.kotlin.stdlib) | ||
} | ||
|
||
val serverUrl = System.getenv("wireMockServerUrl") ?: System.getProperty("wireMockServerUrl") | ||
val graphqlIntrospectSchema by tasks.getting(GraphQLIntrospectSchemaTask::class) { | ||
endpoint.set("$serverUrl/graphql") | ||
timeoutConfig.set(com.expediagroup.graphql.plugin.gradle.config.TimeoutConfiguration(connect = 100, read = 100)) | ||
endpoint.set("$serverUrl/graphql") | ||
timeoutConfig.set(com.expediagroup.graphql.plugin.gradle.config.TimeoutConfiguration(connect = 100, read = 100)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters